-- RedefineTables PRAGMA defer_foreign_keys=ON; PRAGMA foreign_keys=OFF; CREATE TABLE "new_PrivacyPolicy" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "title" TEXT NOT NULL, "responsible" TEXT NOT NULL, "contactDPO" TEXT NOT NULL, "dataSubjectsRights" TEXT NOT NULL, "complaintRight" TEXT NOT NULL, "withdrawalRight" TEXT NOT NULL, "processingDescription" TEXT NOT NULL, "processingPurposes" TEXT, "legalBasis" TEXT, "recipients" TEXT NOT NULL, "storageDuration" TEXT, "dataSource" TEXT, "provisionObligation" TEXT, "provisionConsequences" TEXT, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL, "isPublic" BOOLEAN NOT NULL DEFAULT true ); INSERT INTO "new_PrivacyPolicy" ("complaintRight", "contactDPO", "createdAt", "dataSource", "dataSubjectsRights", "id", "isPublic", "legalBasis", "processingDescription", "processingPurposes", "recipients", "responsible", "storageDuration", "title", "updatedAt", "withdrawalRight") SELECT "complaintRight", "contactDPO", "createdAt", "dataSource", "dataSubjectsRights", "id", "isPublic", "legalBasis", "processingDescription", "processingPurposes", "recipients", "responsible", "storageDuration", "title", "updatedAt", "withdrawalRight" FROM "PrivacyPolicy"; DROP TABLE "PrivacyPolicy"; ALTER TABLE "new_PrivacyPolicy" RENAME TO "PrivacyPolicy"; PRAGMA foreign_keys=ON; PRAGMA defer_foreign_keys=OFF;