From f0f32d71fc6d4e6eb39dc709e50e9031ea12d600 Mon Sep 17 00:00:00 2001 From: Dan Mihailescu Date: Sun, 15 Dec 2024 18:14:46 -0500 Subject: [PATCH] removed --- prisma/dev.db | Bin 49152 -> 49152 bytes .../20241210153750_init/migration.sql | 19 ------- .../migration.sql | 37 ------------- .../migration.sql | 41 --------------- .../migration.sql | 23 -------- .../migration.sql | 22 -------- .../migration.sql | 47 ----------------- src/routes/login/+page.svelte | 49 ------------------ 8 files changed, 238 deletions(-) delete mode 100644 prisma/migrations/20241210153750_init/migration.sql delete mode 100644 prisma/migrations/20241211200947_add_timestamps/migration.sql delete mode 100644 prisma/migrations/20241215210334_added_password/migration.sql delete mode 100644 prisma/migrations/20241215213842_removed_issue/migration.sql delete mode 100644 prisma/migrations/20241215221739_removed_issue/migration.sql delete mode 100644 prisma/migrations/20241215222117_removed_issue/migration.sql delete mode 100644 src/routes/login/+page.svelte diff --git a/prisma/dev.db b/prisma/dev.db index b89514455842ce68a50c183e32ece72ff1d59245..6e0b800a1a30d0c87e8d37acd5eb8251b9a1c7f1 100644 GIT binary patch delta 634 zcmZo@U~Xt&o*>PrKT*b+QGa8?5`8Xa{)-I!ANe2hU)(HcaF}0!pIMpF*daYPF*8Rm zIX{_UZ736b@WMzwGWo5NDNlMJi%FWJ6Db33;GOZ{pNH#4j%F4|#&n_>_&ofOe&Ni>i z$;r!NoRTg!;Xcr9(@#8vkdyP`CF@gIz{Z4DWLG4am!y>#XJzLb6{Zvw6eQ;)6%{5L zndGKsm=zmk=M?1^Ri$SGjS+ey1oomRge1m0k<1XsW|n6qfn1i8npkO8o|m0FxxZh0 vvPk_0K30AO2L9#z3j9_4SNMH_fyKukrNbP{NUZl*L5hj>1k2{C{x$;ux`xQ< delta 144 zcmZo@U~Xt&o*>PrGf~EwQDPgI4c76qXfTH|PHwDMnfxeUiHn)<2?PI9etW(rK*?)- w9Ffdyv8=4D_LJ-SH71MHf8b%}uVUa|&R@lUg@FyIB#VEtLO;vqy8b2u0Nn^J0RR91 diff --git a/prisma/migrations/20241210153750_init/migration.sql b/prisma/migrations/20241210153750_init/migration.sql deleted file mode 100644 index 16407fb..0000000 --- a/prisma/migrations/20241210153750_init/migration.sql +++ /dev/null @@ -1,19 +0,0 @@ --- CreateTable -CREATE TABLE "User" ( - "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, - "email" TEXT NOT NULL, - "name" TEXT -); - --- 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 NOT NULL, - CONSTRAINT "Post_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE -); - --- CreateIndex -CREATE UNIQUE INDEX "User_email_key" ON "User"("email"); diff --git a/prisma/migrations/20241211200947_add_timestamps/migration.sql b/prisma/migrations/20241211200947_add_timestamps/migration.sql deleted file mode 100644 index d4aa687..0000000 --- a/prisma/migrations/20241211200947_add_timestamps/migration.sql +++ /dev/null @@ -1,37 +0,0 @@ -/* - Warnings: - - - Made the column `content` on table `Post` required. This step will fail if there are existing NULL values in that column. - - Made the column `name` on table `User` required. This step will fail if there are existing NULL values in that column. - -*/ --- RedefineTables -PRAGMA defer_foreign_keys=ON; -PRAGMA foreign_keys=OFF; -CREATE TABLE "new_Post" ( - "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, - "title" TEXT NOT NULL, - "content" TEXT NOT NULL, - "published" BOOLEAN DEFAULT false, - "authorId" INTEGER NOT NULL, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - CONSTRAINT "Post_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE -); -INSERT INTO "new_Post" ("authorId", "content", "id", "published", "title") SELECT "authorId", "content", "id", "published", "title" FROM "Post"; -DROP TABLE "Post"; -ALTER TABLE "new_Post" RENAME TO "Post"; -CREATE TABLE "new_User" ( - "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, - "email" TEXT, - "name" TEXT NOT NULL, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP -); -INSERT INTO "new_User" ("email", "id", "name") SELECT "email", "id", "name" FROM "User"; -DROP TABLE "User"; -ALTER TABLE "new_User" RENAME TO "User"; -CREATE UNIQUE INDEX "User_id_key" ON "User"("id"); -CREATE UNIQUE INDEX "User_email_key" ON "User"("email"); -PRAGMA foreign_keys=ON; -PRAGMA defer_foreign_keys=OFF; diff --git a/prisma/migrations/20241215210334_added_password/migration.sql b/prisma/migrations/20241215210334_added_password/migration.sql deleted file mode 100644 index be6f695..0000000 --- a/prisma/migrations/20241215210334_added_password/migration.sql +++ /dev/null @@ -1,41 +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. - -*/ --- CreateTable -CREATE TABLE "Session" ( - "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, - "expiresAt" DATETIME NOT NULL, - "sessionToken" TEXT NOT NULL, - "accessToken" TEXT NOT NULL, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL, - "userId" INTEGER NOT NULL, - CONSTRAINT "Session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE -); - --- RedefineTables -PRAGMA defer_foreign_keys=ON; -PRAGMA foreign_keys=OFF; -CREATE TABLE "new_User" ( - "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, - "email" TEXT, - "name" TEXT NOT NULL, - "password" TEXT NOT NULL, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP -); -INSERT INTO "new_User" ("createdAt", "email", "id", "name", "updatedAt") SELECT "createdAt", "email", "id", "name", "updatedAt" FROM "User"; -DROP TABLE "User"; -ALTER TABLE "new_User" RENAME TO "User"; -CREATE UNIQUE INDEX "User_email_key" ON "User"("email"); -PRAGMA foreign_keys=ON; -PRAGMA defer_foreign_keys=OFF; - --- CreateIndex -CREATE UNIQUE INDEX "Session_sessionToken_key" ON "Session"("sessionToken"); - --- CreateIndex -CREATE UNIQUE INDEX "Session_accessToken_key" ON "Session"("accessToken"); diff --git a/prisma/migrations/20241215213842_removed_issue/migration.sql b/prisma/migrations/20241215213842_removed_issue/migration.sql deleted file mode 100644 index e3d5fe7..0000000 --- a/prisma/migrations/20241215213842_removed_issue/migration.sql +++ /dev/null @@ -1,23 +0,0 @@ -/* - Warnings: - - - You are about to drop the column `accessToken` on the `Session` table. All the data in the column will be lost. - - You are about to drop the column `sessionToken` on the `Session` table. All the data in the column will be lost. - -*/ --- RedefineTables -PRAGMA defer_foreign_keys=ON; -PRAGMA foreign_keys=OFF; -CREATE TABLE "new_Session" ( - "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, - "expiresAt" DATETIME NOT NULL, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL, - "userId" INTEGER NOT NULL, - CONSTRAINT "Session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE -); -INSERT INTO "new_Session" ("createdAt", "expiresAt", "id", "updatedAt", "userId") SELECT "createdAt", "expiresAt", "id", "updatedAt", "userId" FROM "Session"; -DROP TABLE "Session"; -ALTER TABLE "new_Session" RENAME TO "Session"; -PRAGMA foreign_keys=ON; -PRAGMA defer_foreign_keys=OFF; diff --git a/prisma/migrations/20241215221739_removed_issue/migration.sql b/prisma/migrations/20241215221739_removed_issue/migration.sql deleted file mode 100644 index fffc584..0000000 --- a/prisma/migrations/20241215221739_removed_issue/migration.sql +++ /dev/null @@ -1,22 +0,0 @@ -/* - Warnings: - - - The primary key for the `Session` table will be changed. If it partially fails, the table could be left without primary key constraint. - -*/ --- RedefineTables -PRAGMA defer_foreign_keys=ON; -PRAGMA foreign_keys=OFF; -CREATE TABLE "new_Session" ( - "id" TEXT NOT NULL PRIMARY KEY, - "expiresAt" DATETIME NOT NULL, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL, - "userId" INTEGER NOT NULL, - CONSTRAINT "Session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE -); -INSERT INTO "new_Session" ("createdAt", "expiresAt", "id", "updatedAt", "userId") SELECT "createdAt", "expiresAt", "id", "updatedAt", "userId" FROM "Session"; -DROP TABLE "Session"; -ALTER TABLE "new_Session" RENAME TO "Session"; -PRAGMA foreign_keys=ON; -PRAGMA defer_foreign_keys=OFF; diff --git a/prisma/migrations/20241215222117_removed_issue/migration.sql b/prisma/migrations/20241215222117_removed_issue/migration.sql deleted file mode 100644 index 1bc57ba..0000000 --- a/prisma/migrations/20241215222117_removed_issue/migration.sql +++ /dev/null @@ -1,47 +0,0 @@ -/* - Warnings: - - - The primary key for the `User` table will be changed. If it partially fails, the table could be left without primary key constraint. - -*/ --- RedefineTables -PRAGMA defer_foreign_keys=ON; -PRAGMA foreign_keys=OFF; -CREATE TABLE "new_Post" ( - "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, - "title" TEXT NOT NULL, - "content" TEXT NOT NULL, - "published" BOOLEAN DEFAULT false, - "authorId" TEXT NOT NULL, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - CONSTRAINT "Post_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE -); -INSERT INTO "new_Post" ("authorId", "content", "createdAt", "id", "published", "title", "updatedAt") SELECT "authorId", "content", "createdAt", "id", "published", "title", "updatedAt" FROM "Post"; -DROP TABLE "Post"; -ALTER TABLE "new_Post" RENAME TO "Post"; -CREATE TABLE "new_Session" ( - "id" TEXT NOT NULL PRIMARY KEY, - "expiresAt" DATETIME NOT NULL, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL, - "userId" TEXT NOT NULL, - CONSTRAINT "Session_userId_fkey" FOREIGN KEY ("userId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE -); -INSERT INTO "new_Session" ("createdAt", "expiresAt", "id", "updatedAt", "userId") SELECT "createdAt", "expiresAt", "id", "updatedAt", "userId" FROM "Session"; -DROP TABLE "Session"; -ALTER TABLE "new_Session" RENAME TO "Session"; -CREATE TABLE "new_User" ( - "id" TEXT NOT NULL PRIMARY KEY, - "email" TEXT, - "name" TEXT NOT NULL, - "password" TEXT NOT NULL, - "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, - "updatedAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP -); -INSERT INTO "new_User" ("createdAt", "email", "id", "name", "password", "updatedAt") SELECT "createdAt", "email", "id", "name", "password", "updatedAt" FROM "User"; -DROP TABLE "User"; -ALTER TABLE "new_User" RENAME TO "User"; -CREATE UNIQUE INDEX "User_email_key" ON "User"("email"); -PRAGMA foreign_keys=ON; -PRAGMA defer_foreign_keys=OFF; diff --git a/src/routes/login/+page.svelte b/src/routes/login/+page.svelte deleted file mode 100644 index 1eb8b77..0000000 --- a/src/routes/login/+page.svelte +++ /dev/null @@ -1,49 +0,0 @@ - - -
-

Hestia

- -
- - \ No newline at end of file