/* Warnings: - Added the required column `updatedAt` to the `Contact` table without a default value. This is not possible if the table is not empty. */ -- RedefineTables PRAGMA defer_foreign_keys=ON; PRAGMA foreign_keys=OFF; CREATE TABLE "new_Contact" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "nombre" TEXT NOT NULL, "email" TEXT NOT NULL, "mensaje" TEXT NOT NULL, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL ); INSERT INTO "new_Contact" ("createdAt", "email", "id", "mensaje", "nombre") SELECT "createdAt", "email", "id", "mensaje", "nombre" FROM "Contact"; DROP TABLE "Contact"; ALTER TABLE "new_Contact" RENAME TO "Contact"; CREATE UNIQUE INDEX "Contact_email_key" ON "Contact"("email"); CREATE INDEX "Contact_email_createdAt_idx" ON "Contact"("email", "createdAt"); PRAGMA foreign_keys=ON; PRAGMA defer_foreign_keys=OFF;