-- RedefineTables PRAGMA defer_foreign_keys=ON; PRAGMA foreign_keys=OFF; CREATE TABLE "new_Recipe" ( "id" TEXT NOT NULL PRIMARY KEY, "name" TEXT NOT NULL, "description" TEXT, "instructions" TEXT, "photoUrl" TEXT, "time" TEXT NOT NULL DEFAULT 'Medium', "station" TEXT NOT NULL DEFAULT 'Pans', "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL ); INSERT INTO "new_Recipe" ("createdAt", "description", "id", "instructions", "name", "photoUrl", "updatedAt") SELECT "createdAt", "description", "id", "instructions", "name", "photoUrl", "updatedAt" FROM "Recipe"; DROP TABLE "Recipe"; ALTER TABLE "new_Recipe" RENAME TO "Recipe"; PRAGMA foreign_keys=ON; PRAGMA defer_foreign_keys=OFF;