diff --git a/packages/backend/prisma/migrations/20240302121448_init/migration.sql b/packages/backend/prisma/migrations/20240302121448_init/migration.sql deleted file mode 100644 index b6a8924..0000000 --- a/packages/backend/prisma/migrations/20240302121448_init/migration.sql +++ /dev/null @@ -1,11 +0,0 @@ --- CreateTable -CREATE TABLE "User" ( - "id" SERIAL NOT NULL, - "email" TEXT NOT NULL, - "name" TEXT, - - CONSTRAINT "User_pkey" PRIMARY KEY ("id") -); - --- CreateIndex -CREATE UNIQUE INDEX "User_email_key" ON "User"("email"); diff --git a/packages/backend/prisma/migrations/20240911180819_added_models/migration.sql b/packages/backend/prisma/migrations/20240911180819_added_models/migration.sql deleted file mode 100644 index dca0af8..0000000 --- a/packages/backend/prisma/migrations/20240911180819_added_models/migration.sql +++ /dev/null @@ -1,14 +0,0 @@ --- CreateTable -CREATE TABLE "Todo" ( - "id" SERIAL NOT NULL, - "title" TEXT NOT NULL, - "text" TEXT NOT NULL DEFAULT '', - "isCompleted" BOOLEAN NOT NULL DEFAULT false, - "isPublic" BOOLEAN NOT NULL DEFAULT false, - "userId" INTEGER, - - CONSTRAINT "Todo_pkey" PRIMARY KEY ("id") -); - --- AddForeignKey -ALTER TABLE "Todo" ADD CONSTRAINT "Todo_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE SET NULL ON UPDATE CASCADE; diff --git a/packages/backend/prisma/migrations/20240911185314_change_todo_model/migration.sql b/packages/backend/prisma/migrations/20240911185314_change_todo_model/migration.sql deleted file mode 100644 index ce2a31d..0000000 --- a/packages/backend/prisma/migrations/20240911185314_change_todo_model/migration.sql +++ /dev/null @@ -1,14 +0,0 @@ -/* - Warnings: - - - Made the column `userId` on table `Todo` required. This step will fail if there are existing NULL values in that column. - -*/ --- DropForeignKey -ALTER TABLE "Todo" DROP CONSTRAINT "Todo_userId_fkey"; - --- AlterTable -ALTER TABLE "Todo" ALTER COLUMN "userId" SET NOT NULL; - --- AddForeignKey -ALTER TABLE "Todo" ADD CONSTRAINT "Todo_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User"("id") ON DELETE RESTRICT ON UPDATE CASCADE; diff --git a/packages/backend/prisma/migrations/20240917125726_added_password_column_to_user_db/migration.sql b/packages/backend/prisma/migrations/20240917125726_added_password_column_to_user_db/migration.sql deleted file mode 100644 index 05edc77..0000000 --- a/packages/backend/prisma/migrations/20240917125726_added_password_column_to_user_db/migration.sql +++ /dev/null @@ -1,8 +0,0 @@ -/* - Warnings: - - - Added the required column `password` to the `User` table without a default value. This is not possible if the table is not empty. - -*/ --- AlterTable -ALTER TABLE "User" ADD COLUMN "password" TEXT NOT NULL; diff --git a/packages/backend/prisma/migrations/20240919073154_verification_field_user_add/migration.sql b/packages/backend/prisma/migrations/20240919073154_verification_field_user_add/migration.sql deleted file mode 100644 index 7891e4a..0000000 --- a/packages/backend/prisma/migrations/20240919073154_verification_field_user_add/migration.sql +++ /dev/null @@ -1,9 +0,0 @@ -/* - Warnings: - - - Added the required column `verificationtoken` to the `User` table without a default value. This is not possible if the table is not empty. - -*/ --- AlterTable -ALTER TABLE "User" ADD COLUMN "isverified" BOOLEAN NOT NULL DEFAULT false, -ADD COLUMN "verificationtoken" TEXT NOT NULL; diff --git a/packages/backend/prisma/migrations/20240927134856_text_todo_optional/migration.sql b/packages/backend/prisma/migrations/20240927134856_text_todo_optional/migration.sql deleted file mode 100644 index 77e7037..0000000 --- a/packages/backend/prisma/migrations/20240927134856_text_todo_optional/migration.sql +++ /dev/null @@ -1,2 +0,0 @@ --- AlterTable -ALTER TABLE "Todo" ALTER COLUMN "text" DROP NOT NULL; diff --git a/packages/backend/prisma/migrations/20240927145002_remove_optional_text_todo_field/migration.sql b/packages/backend/prisma/migrations/20240927145002_remove_optional_text_todo_field/migration.sql deleted file mode 100644 index 04fe7c3..0000000 --- a/packages/backend/prisma/migrations/20240927145002_remove_optional_text_todo_field/migration.sql +++ /dev/null @@ -1,8 +0,0 @@ -/* - Warnings: - - - Made the column `text` on table `Todo` required. This step will fail if there are existing NULL values in that column. - -*/ --- AlterTable -ALTER TABLE "Todo" ALTER COLUMN "text" SET NOT NULL; diff --git a/packages/backend/prisma/migrations/migration_lock.toml b/packages/backend/prisma/migrations/migration_lock.toml deleted file mode 100644 index fbffa92..0000000 --- a/packages/backend/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 = "postgresql" \ No newline at end of file