BEGIN;
CREATE TABLE IF NOT EXISTS "pk_teamsfranchises" (
	"franchID"	TEXT,
	"franchName"	TEXT,
	"active"	TEXT,
	"NAassoc"	TEXT,
	PRIMARY KEY("franchID")
);

INSERT INTO "pk_teamsfranchises" SELECT DISTINCT * FROM "teamsfranchises";
DROP TABLE "teamsfranchises";
ALTER TABLE "pk_teamsfranchises" RENAME TO "teamsfranchises";
COMMIT;
