17 lines
446 B
MySQL
17 lines
446 B
MySQL
|
begin;
|
||
|
CREATE TABLE IF NOT EXISTS "pk_awardssharemanagers" (
|
||
|
"awardID" TEXT,
|
||
|
"yearID" NUMERIC,
|
||
|
"lgID" TEXT,
|
||
|
"playerID" TEXT,
|
||
|
"pointsWon" NUMERIC,
|
||
|
"pointsMax" NUMERIC,
|
||
|
"votesFirst" NUMERIC,
|
||
|
PRIMARY KEY("playerID","awardID","yearID","lgID")
|
||
|
);
|
||
|
|
||
|
INSERT INTO "pk_awardssharemanagers" SELECT DISTINCT * FROM "awardssharemanagers";
|
||
|
DROP TABLE "awardssharemanagers";
|
||
|
ALTER TABLE "pk_awardssharemanagers" RENAME TO "awardssharemanagers";
|
||
|
commit;
|