/* Warnings: - You are about to drop the column `token` on the `Bot` table. All the data in the column will be lost. */ -- RedefineTables PRAGMA defer_foreign_keys=ON; PRAGMA foreign_keys=OFF; CREATE TABLE "new_Bot" ( "id" TEXT NOT NULL PRIMARY KEY, "name" TEXT NOT NULL, "isActive" BOOLEAN NOT NULL DEFAULT true, "description" TEXT, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ); INSERT INTO "new_Bot" ("createdAt", "description", "id", "isActive", "name") SELECT "createdAt", "description", "id", "isActive", "name" FROM "Bot"; DROP TABLE "Bot"; ALTER TABLE "new_Bot" RENAME TO "Bot"; CREATE UNIQUE INDEX "Bot_name_key" ON "Bot"("name"); PRAGMA foreign_keys=ON; PRAGMA defer_foreign_keys=OFF;