2024-01-26 00:48:11 +00:00
|
|
|
BEGIN;
|
|
|
|
CREATE TABLE IF NOT EXISTS "pk_teamshalf" (
|
|
|
|
"yearID" NUMERIC,
|
|
|
|
"lgID" TEXT,
|
|
|
|
"teamID" TEXT,
|
|
|
|
"Half" NUMERIC,
|
|
|
|
"divID" TEXT,
|
|
|
|
"DivWin" TEXT,
|
|
|
|
"Rank" NUMERIC,
|
|
|
|
"G" NUMERIC,
|
|
|
|
"W" NUMERIC,
|
|
|
|
"L" NUMERIC,
|
2024-01-26 01:59:14 +00:00
|
|
|
PRIMARY KEY("Half","yearID","teamID")
|
2024-01-26 00:48:11 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
INSERT INTO "pk_teamshalf" SELECT DISTINCT * FROM "teamshalf";
|
|
|
|
DROP TABLE "teamshalf";
|
|
|
|
ALTER TABLE "pk_teamshalf" RENAME TO "teamshalf";
|
|
|
|
COMMIT;
|