/*
  Warnings:

  - You are about to drop the column `privateKey` on the `Project` table. All the data in the column will be lost.
  - You are about to drop the column `publicKey` on the `Project` table. All the data in the column will be lost.

*/
-- RedefineTables
PRAGMA defer_foreign_keys=ON;
PRAGMA foreign_keys=OFF;
CREATE TABLE "new_Project" (
    "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
    "userId" TEXT NOT NULL,
    "name" TEXT NOT NULL,
    "state" TEXT,
    "draft" TEXT,
    "instanceId" TEXT,
    "deployKey" TEXT,
    "githubToken" TEXT,
    "access" TEXT,
    "deployKeyPublic" TEXT
);
INSERT INTO "new_Project" ("access", "deployKey", "draft", "githubToken", "id", "instanceId", "name", "state", "userId") SELECT "access", "deployKey", "draft", "githubToken", "id", "instanceId", "name", "state", "userId" FROM "Project";
DROP TABLE "Project";
ALTER TABLE "new_Project" RENAME TO "Project";
PRAGMA foreign_keys=ON;
PRAGMA defer_foreign_keys=OFF;
