drop team column

This commit is contained in:
Nick Griffey 2024-01-29 21:43:52 -06:00
parent 6d4e593065
commit f0b4c0c3b5
5 changed files with 4 additions and 28 deletions

View File

@ -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;

View File

@ -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;

View File

@ -1,3 +1,4 @@
begin;
alter table fieldingofsplit drop column "lgID";
alter table fieldingofsplit drop column "teamID";
commit;

View File

@ -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,

View File

@ -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;