From ba166aaba2ff7e9f90e3c8c4943402b1620f8738 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Vanvelthem?= Date: Thu, 27 May 2021 00:03:23 +0200 Subject: [PATCH] refactor: remove migration made for sqlite --- .../20210521192528_initial/migration.sql | 80 ------------------- .../prisma/migrations/migration_lock.toml | 3 - 2 files changed, 83 deletions(-) delete mode 100644 apps/web-app/prisma/migrations/20210521192528_initial/migration.sql delete mode 100644 apps/web-app/prisma/migrations/migration_lock.toml diff --git a/apps/web-app/prisma/migrations/20210521192528_initial/migration.sql b/apps/web-app/prisma/migrations/20210521192528_initial/migration.sql deleted file mode 100644 index 6c3e9815562..00000000000 --- a/apps/web-app/prisma/migrations/20210521192528_initial/migration.sql +++ /dev/null @@ -1,80 +0,0 @@ --- CreateTable -CREATE TABLE "post" ( - "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, - "title" TEXT NOT NULL, - "content" TEXT, - "published" BOOLEAN NOT NULL DEFAULT false, - "authorId" INTEGER, - FOREIGN KEY ("authorId") REFERENCES "user" ("id") ON DELETE SET NULL ON UPDATE CASCADE -); - --- CreateTable -CREATE TABLE "user" ( - "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, - "name" TEXT, - "email" TEXT NOT NULL, - "email_verified" DATETIME, - "image" TEXT, - "created_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updated_at" DATETIME NOT NULL -); - --- CreateTable -CREATE TABLE "auth_account" ( - "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, - "compound_id" TEXT NOT NULL, - "user_id" INTEGER NOT NULL, - "provider_type" TEXT NOT NULL, - "provider_id" TEXT NOT NULL, - "provider_account_id" TEXT NOT NULL, - "refresh_token" TEXT, - "access_token" TEXT, - "access_token_expires" DATETIME, - "created_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updated_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP -); - --- CreateTable -CREATE TABLE "auth_session" ( - "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, - "user_id" INTEGER NOT NULL, - "expires" DATETIME NOT NULL, - "session_token" TEXT NOT NULL, - "access_token" TEXT NOT NULL, - "created_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updated_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP -); - --- CreateTable -CREATE TABLE "auth_verification_request" ( - "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, - "identifier" TEXT NOT NULL, - "token" TEXT NOT NULL, - "expires" DATETIME NOT NULL, - "created_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updated_at" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP -); - --- CreateIndex -CREATE UNIQUE INDEX "user.email_unique" ON "user"("email"); - --- CreateIndex -CREATE UNIQUE INDEX "auth_account.compound_id_unique" ON "auth_account"("compound_id"); - --- CreateIndex -CREATE INDEX "providerAccountId" ON "auth_account"("provider_account_id"); - --- CreateIndex -CREATE INDEX "providerId" ON "auth_account"("provider_id"); - --- CreateIndex -CREATE INDEX "userId" ON "auth_account"("user_id"); - --- CreateIndex -CREATE UNIQUE INDEX "auth_session.session_token_unique" ON "auth_session"("session_token"); - --- CreateIndex -CREATE UNIQUE INDEX "auth_session.access_token_unique" ON "auth_session"("access_token"); - --- CreateIndex -CREATE UNIQUE INDEX "auth_verification_request.token_unique" ON "auth_verification_request"("token"); diff --git a/apps/web-app/prisma/migrations/migration_lock.toml b/apps/web-app/prisma/migrations/migration_lock.toml deleted file mode 100644 index e5e5c4705ab..00000000000 --- a/apps/web-app/prisma/migrations/migration_lock.toml +++ /dev/null @@ -1,3 +0,0 @@ -# Please do not edit this file manually -# It should be added in your version-control system (i.e. Git) -provider = "sqlite" \ No newline at end of file