/* Warnings: - Added the required column `rank` to the `Player` table without a default value. This is not possible if the table is not empty. */ -- RedefineTables PRAGMA foreign_keys=OFF; CREATE TABLE "new_Player" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "playerName" TEXT NOT NULL, "rank" INTEGER NOT NULL, "countyId" INTEGER NOT NULL, CONSTRAINT "Player_countyId_fkey" FOREIGN KEY ("countyId") REFERENCES "County" ("id") ON DELETE RESTRICT ON UPDATE CASCADE ); INSERT INTO "new_Player" ("countyId", "id", "playerName") SELECT "countyId", "id", "playerName" FROM "Player"; DROP TABLE "Player"; ALTER TABLE "new_Player" RENAME TO "Player"; PRAGMA foreign_key_check; PRAGMA foreign_keys=ON;