diff --git a/sql/batting.sql b/sql/batting.sql index 381dc72..1db5c65 100644 --- a/sql/batting.sql +++ b/sql/batting.sql @@ -1,11 +1,4 @@ begin; alter table batting drop column "lgID"; - -update batting -set teamid = 'WS9' -where teamid = 'WAS' and yearid between 1891 and 1899; - -update batting -set teamid = 'PHP' -where teamid = 'PH4' and yearid between 1890 and 1891; +alter table batting drop column "teamID"; commit; diff --git a/sql/fielding.sql b/sql/fielding.sql index 832f00a..8eafb4c 100644 --- a/sql/fielding.sql +++ b/sql/fielding.sql @@ -1,11 +1,4 @@ begin; alter table fielding drop column "lgID"; - -update fielding -set teamid = 'WS9' -where teamid = 'WAS' and yearid between 1891 and 1899; - -update fielding -set teamid = 'PHP' -where teamid = 'PH4' and yearid between 1890 and 1891; +alter table fielding drop column "teamID"; commit; diff --git a/sql/fieldingofsplit.sql b/sql/fieldingofsplit.sql index d725896..d87651f 100644 --- a/sql/fieldingofsplit.sql +++ b/sql/fieldingofsplit.sql @@ -1,3 +1,4 @@ begin; alter table fieldingofsplit drop column "lgID"; +alter table fieldingofsplit drop column "teamID"; commit; diff --git a/sql/load.sql b/sql/load.sql index 4f518b1..c2e07d7 100644 --- a/sql/load.sql +++ b/sql/load.sql @@ -173,7 +173,6 @@ CREATE TABLE IF NOT EXISTS "batting" ( "player" TEXT, "year" NUMERIC, "stint" NUMERIC, - "team" TEXT, "G" NUMERIC, "AB" NUMERIC, "R" NUMERIC, @@ -201,7 +200,6 @@ CREATE TABLE IF NOT EXISTS "fielding" ( "player" TEXT, "year" NUMERIC, "stint" NUMERIC, - "team" TEXT, "POS" TEXT, "G" NUMERIC, "GS" NUMERIC, @@ -225,7 +223,6 @@ CREATE TABLE IF NOT EXISTS "pitching" ( "player" TEXT, "year" NUMERIC, "stint" NUMERIC, - "team" TEXT, "W" NUMERIC, "L" NUMERIC, "G" NUMERIC, @@ -321,7 +318,6 @@ CREATE TABLE IF NOT EXISTS "fieldingofsplit" ( "player" TEXT, "year" NUMERIC, "stint" NUMERIC, - "team" TEXT, "POS" TEXT, "G" NUMERIC, "GS" NUMERIC, diff --git a/sql/pitching.sql b/sql/pitching.sql index 53c13ad..f0c97f8 100644 --- a/sql/pitching.sql +++ b/sql/pitching.sql @@ -1,11 +1,4 @@ begin; alter table pitching drop column "lgID"; - -update pitching -set teamid = 'WS9' -where teamid = 'WAS' and yearid between 1891 and 1899; - -update pitching -set teamid = 'PHP' -where teamid = 'PH4' and yearid between 1890 and 1891; +alter table pitching drop column "teamID"; commit;