move managershalf

This commit is contained in:
2024-01-29 19:59:41 -06:00
parent 4e6f000d3f
commit e80bf97a43
4 changed files with 22 additions and 21 deletions

View File

@@ -1,20 +0,0 @@
BEGIN;
CREATE TABLE IF NOT EXISTS "pk_managershalf" (
"playerID" TEXT,
"yearID" NUMERIC,
"teamID" TEXT,
"lgID" TEXT,
"inseason" NUMERIC,
"half" NUMERIC,
"G" NUMERIC,
"W" NUMERIC,
"L" NUMERIC,
"rank" NUMERIC,
PRIMARY KEY("playerID","yearID","teamID","inseason","half"),
foreign key("playerID") references "people"("playerID")
);
INSERT INTO "pk_managershalf" SELECT DISTINCT * FROM "managershalf";
DROP TABLE "managershalf";
ALTER TABLE "pk_managershalf" RENAME TO "managershalf";
COMMIT;