Add some 3nf corrections

This commit is contained in:
Nick Griffey 2024-01-26 22:43:10 -06:00
parent 5df67dfe74
commit fbd9e4b669
2 changed files with 5 additions and 1 deletions

View File

@ -4,7 +4,7 @@ bbdb = baseballdatabank-2023.1
db: baseball.db db: baseball.db
baseball.db: sql/corrections/*.sql sql/keys/*.sql sql/1nf/*.sql sql/2nf/*.sql baseball.db: sql/corrections/*.sql sql/keys/*.sql sql/1nf/*.sql sql/2nf/*.sql sql/3nf/*.sql
rm -f baseball.db rm -f baseball.db
sqlite3 baseball.db ".import --csv $(bbdb)/core/AllstarFull.csv allstarfull" sqlite3 baseball.db ".import --csv $(bbdb)/core/AllstarFull.csv allstarfull"
sqlite3 baseball.db ".import --csv $(bbdb)/core/Appearances.csv appearances" sqlite3 baseball.db ".import --csv $(bbdb)/core/Appearances.csv appearances"
@ -37,4 +37,5 @@ baseball.db: sql/corrections/*.sql sql/keys/*.sql sql/1nf/*.sql sql/2nf/*.sql
cat sql/keys/*.sql | sqlite3 baseball.db cat sql/keys/*.sql | sqlite3 baseball.db
cat sql/1nf/*.sql | sqlite3 baseball.db cat sql/1nf/*.sql | sqlite3 baseball.db
cat sql/2nf/*.sql | sqlite3 baseball.db cat sql/2nf/*.sql | sqlite3 baseball.db
cat sql/3nf/*.sql | sqlite3 baseball.db
sqlite3 baseball.db "VACUUM" sqlite3 baseball.db "VACUUM"

3
sql/3nf/allstarfull.sql Normal file
View File

@ -0,0 +1,3 @@
begin;
alter table allstarfull drop column "lgID";
commit;