drop team column
This commit is contained in:
parent
6d4e593065
commit
f0b4c0c3b5
|
@ -1,11 +1,4 @@
|
||||||
begin;
|
begin;
|
||||||
alter table batting drop column "lgID";
|
alter table batting drop column "lgID";
|
||||||
|
alter table batting drop column "teamID";
|
||||||
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;
|
|
||||||
commit;
|
commit;
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
begin;
|
begin;
|
||||||
alter table fielding drop column "lgID";
|
alter table fielding drop column "lgID";
|
||||||
|
alter table fielding drop column "teamID";
|
||||||
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;
|
|
||||||
commit;
|
commit;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
begin;
|
begin;
|
||||||
alter table fieldingofsplit drop column "lgID";
|
alter table fieldingofsplit drop column "lgID";
|
||||||
|
alter table fieldingofsplit drop column "teamID";
|
||||||
commit;
|
commit;
|
||||||
|
|
|
@ -173,7 +173,6 @@ CREATE TABLE IF NOT EXISTS "batting" (
|
||||||
"player" TEXT,
|
"player" TEXT,
|
||||||
"year" NUMERIC,
|
"year" NUMERIC,
|
||||||
"stint" NUMERIC,
|
"stint" NUMERIC,
|
||||||
"team" TEXT,
|
|
||||||
"G" NUMERIC,
|
"G" NUMERIC,
|
||||||
"AB" NUMERIC,
|
"AB" NUMERIC,
|
||||||
"R" NUMERIC,
|
"R" NUMERIC,
|
||||||
|
@ -201,7 +200,6 @@ CREATE TABLE IF NOT EXISTS "fielding" (
|
||||||
"player" TEXT,
|
"player" TEXT,
|
||||||
"year" NUMERIC,
|
"year" NUMERIC,
|
||||||
"stint" NUMERIC,
|
"stint" NUMERIC,
|
||||||
"team" TEXT,
|
|
||||||
"POS" TEXT,
|
"POS" TEXT,
|
||||||
"G" NUMERIC,
|
"G" NUMERIC,
|
||||||
"GS" NUMERIC,
|
"GS" NUMERIC,
|
||||||
|
@ -225,7 +223,6 @@ CREATE TABLE IF NOT EXISTS "pitching" (
|
||||||
"player" TEXT,
|
"player" TEXT,
|
||||||
"year" NUMERIC,
|
"year" NUMERIC,
|
||||||
"stint" NUMERIC,
|
"stint" NUMERIC,
|
||||||
"team" TEXT,
|
|
||||||
"W" NUMERIC,
|
"W" NUMERIC,
|
||||||
"L" NUMERIC,
|
"L" NUMERIC,
|
||||||
"G" NUMERIC,
|
"G" NUMERIC,
|
||||||
|
@ -321,7 +318,6 @@ CREATE TABLE IF NOT EXISTS "fieldingofsplit" (
|
||||||
"player" TEXT,
|
"player" TEXT,
|
||||||
"year" NUMERIC,
|
"year" NUMERIC,
|
||||||
"stint" NUMERIC,
|
"stint" NUMERIC,
|
||||||
"team" TEXT,
|
|
||||||
"POS" TEXT,
|
"POS" TEXT,
|
||||||
"G" NUMERIC,
|
"G" NUMERIC,
|
||||||
"GS" NUMERIC,
|
"GS" NUMERIC,
|
||||||
|
|
|
@ -1,11 +1,4 @@
|
||||||
begin;
|
begin;
|
||||||
alter table pitching drop column "lgID";
|
alter table pitching drop column "lgID";
|
||||||
|
alter table pitching drop column "teamID";
|
||||||
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;
|
|
||||||
commit;
|
commit;
|
||||||
|
|
Loading…
Reference in New Issue