From 799d71cdae5e0c299f09107c151b02a94c416448 Mon Sep 17 00:00:00 2001 From: headlessdev <132705454+crocofied@users.noreply.github.com> Date: Sun, 27 Apr 2025 16:19:31 +0200 Subject: [PATCH] Delete prisma/migrations directory --- .../20250411144949_init/migration.sql | 11 ----------- .../migration.sql | 2 -- .../20250412100552_server/migration.sql | 10 ---------- .../20250412104250_server/migration.sql | 2 -- .../20250412135831_settings/migration.sql | 7 ------- .../20250412141334_online/migration.sql | 2 -- .../20250412183017_server/migration.sql | 5 ----- .../20250414173201_user_model/migration.sql | 11 ----------- .../migration.sql | 9 --------- .../migration.sql | 18 ------------------ .../migration.sql | 2 -- .../20250418093116_host_columns/migration.sql | 3 --- .../migration.sql | 9 --------- .../migration.sql | 5 ----- .../migration.sql | 2 -- .../20250419180224_monitoring/migration.sql | 7 ------- .../migration.sql | 10 ---------- .../migration.sql | 12 ------------ .../20250421132642_pushover/migration.sql | 3 --- .../20250421132732_pushover_url/migration.sql | 2 -- .../migration.sql | 7 ------- .../migration.sql | 2 -- .../migration.sql | 11 ----------- .../migration.sql | 11 ----------- prisma/migrations/migration_lock.toml | 3 --- 25 files changed, 166 deletions(-) delete mode 100644 prisma/migrations/20250411144949_init/migration.sql delete mode 100644 prisma/migrations/20250411203401_add_created_at_field/migration.sql delete mode 100644 prisma/migrations/20250412100552_server/migration.sql delete mode 100644 prisma/migrations/20250412104250_server/migration.sql delete mode 100644 prisma/migrations/20250412135831_settings/migration.sql delete mode 100644 prisma/migrations/20250412141334_online/migration.sql delete mode 100644 prisma/migrations/20250412183017_server/migration.sql delete mode 100644 prisma/migrations/20250414173201_user_model/migration.sql delete mode 100644 prisma/migrations/20250414201604_uptime_history/migration.sql delete mode 100644 prisma/migrations/20250417110704_notification_model/migration.sql delete mode 100644 prisma/migrations/20250417145101_settings_notification_text/migration.sql delete mode 100644 prisma/migrations/20250418093116_host_columns/migration.sql delete mode 100644 prisma/migrations/20250418101029_host_server_string_int/migration.sql delete mode 100644 prisma/migrations/20250419110503_gotify_and_ntfy_notification_column/migration.sql delete mode 100644 prisma/migrations/20250419131018_icon_in_server_model/migration.sql delete mode 100644 prisma/migrations/20250419180224_monitoring/migration.sql delete mode 100644 prisma/migrations/20250421111514_settings_notification_text_application_and_server/migration.sql delete mode 100644 prisma/migrations/20250421112542_server_history/migration.sql delete mode 100644 prisma/migrations/20250421132642_pushover/migration.sql delete mode 100644 prisma/migrations/20250421132732_pushover_url/migration.sql delete mode 100644 prisma/migrations/20250423190419_test_notification/migration.sql delete mode 100644 prisma/migrations/20250424143929_add_ignore_not_found_err_field/migration.sql delete mode 100644 prisma/migrations/20250426131205_uptime_column_in_server_modell/migration.sql delete mode 100644 prisma/migrations/20250427124325_notification_name_and_application_uptime_check_url/migration.sql delete mode 100644 prisma/migrations/migration_lock.toml diff --git a/prisma/migrations/20250411144949_init/migration.sql b/prisma/migrations/20250411144949_init/migration.sql deleted file mode 100644 index 533c952..0000000 --- a/prisma/migrations/20250411144949_init/migration.sql +++ /dev/null @@ -1,11 +0,0 @@ --- CreateTable -CREATE TABLE "application" ( - "id" SERIAL NOT NULL, - "name" TEXT NOT NULL, - "description" TEXT, - "icon" TEXT NOT NULL, - "publicURL" TEXT NOT NULL, - "localURL" TEXT, - - CONSTRAINT "application_pkey" PRIMARY KEY ("id") -); diff --git a/prisma/migrations/20250411203401_add_created_at_field/migration.sql b/prisma/migrations/20250411203401_add_created_at_field/migration.sql deleted file mode 100644 index 7702c61..0000000 --- a/prisma/migrations/20250411203401_add_created_at_field/migration.sql +++ /dev/null @@ -1,2 +0,0 @@ --- AlterTable -ALTER TABLE "application" ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP; diff --git a/prisma/migrations/20250412100552_server/migration.sql b/prisma/migrations/20250412100552_server/migration.sql deleted file mode 100644 index cd9ea9a..0000000 --- a/prisma/migrations/20250412100552_server/migration.sql +++ /dev/null @@ -1,10 +0,0 @@ --- CreateTable -CREATE TABLE "server" ( - "id" SERIAL NOT NULL, - "name" TEXT NOT NULL, - "os" TEXT, - "ip" TEXT, - "url" TEXT, - - CONSTRAINT "server_pkey" PRIMARY KEY ("id") -); diff --git a/prisma/migrations/20250412104250_server/migration.sql b/prisma/migrations/20250412104250_server/migration.sql deleted file mode 100644 index d23dac8..0000000 --- a/prisma/migrations/20250412104250_server/migration.sql +++ /dev/null @@ -1,2 +0,0 @@ --- AlterTable -ALTER TABLE "application" ADD COLUMN "serverId" INTEGER NOT NULL DEFAULT 1; diff --git a/prisma/migrations/20250412135831_settings/migration.sql b/prisma/migrations/20250412135831_settings/migration.sql deleted file mode 100644 index 0943097..0000000 --- a/prisma/migrations/20250412135831_settings/migration.sql +++ /dev/null @@ -1,7 +0,0 @@ --- CreateTable -CREATE TABLE "settings" ( - "id" SERIAL NOT NULL, - "uptime_checks" BOOLEAN NOT NULL DEFAULT true, - - CONSTRAINT "settings_pkey" PRIMARY KEY ("id") -); diff --git a/prisma/migrations/20250412141334_online/migration.sql b/prisma/migrations/20250412141334_online/migration.sql deleted file mode 100644 index 7037cc4..0000000 --- a/prisma/migrations/20250412141334_online/migration.sql +++ /dev/null @@ -1,2 +0,0 @@ --- AlterTable -ALTER TABLE "application" ADD COLUMN "online" BOOLEAN NOT NULL DEFAULT true; diff --git a/prisma/migrations/20250412183017_server/migration.sql b/prisma/migrations/20250412183017_server/migration.sql deleted file mode 100644 index 35d55e8..0000000 --- a/prisma/migrations/20250412183017_server/migration.sql +++ /dev/null @@ -1,5 +0,0 @@ --- AlterTable -ALTER TABLE "server" ADD COLUMN "cpu" TEXT, -ADD COLUMN "disk" TEXT, -ADD COLUMN "gpu" TEXT, -ADD COLUMN "ram" TEXT; diff --git a/prisma/migrations/20250414173201_user_model/migration.sql b/prisma/migrations/20250414173201_user_model/migration.sql deleted file mode 100644 index b81375d..0000000 --- a/prisma/migrations/20250414173201_user_model/migration.sql +++ /dev/null @@ -1,11 +0,0 @@ --- CreateTable -CREATE TABLE "user" ( - "id" TEXT NOT NULL, - "email" TEXT NOT NULL, - "password" TEXT NOT NULL, - - CONSTRAINT "user_pkey" PRIMARY KEY ("id") -); - --- CreateIndex -CREATE UNIQUE INDEX "user_email_key" ON "user"("email"); diff --git a/prisma/migrations/20250414201604_uptime_history/migration.sql b/prisma/migrations/20250414201604_uptime_history/migration.sql deleted file mode 100644 index 3021ba4..0000000 --- a/prisma/migrations/20250414201604_uptime_history/migration.sql +++ /dev/null @@ -1,9 +0,0 @@ --- CreateTable -CREATE TABLE "uptime_history" ( - "id" SERIAL NOT NULL, - "applicationId" INTEGER NOT NULL DEFAULT 1, - "online" BOOLEAN NOT NULL DEFAULT true, - "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, - - CONSTRAINT "uptime_history_pkey" PRIMARY KEY ("id") -); diff --git a/prisma/migrations/20250417110704_notification_model/migration.sql b/prisma/migrations/20250417110704_notification_model/migration.sql deleted file mode 100644 index b8c5876..0000000 --- a/prisma/migrations/20250417110704_notification_model/migration.sql +++ /dev/null @@ -1,18 +0,0 @@ --- CreateTable -CREATE TABLE "notification" ( - "id" SERIAL NOT NULL, - "enabled" BOOLEAN NOT NULL DEFAULT true, - "type" TEXT NOT NULL, - "smtpHost" TEXT, - "smtpPort" INTEGER, - "smtpFrom" TEXT, - "smtpUser" TEXT, - "smtpPass" TEXT, - "smtpSecure" BOOLEAN, - "smtpTo" TEXT, - "telegramChatId" TEXT, - "telegramToken" TEXT, - "discordWebhook" TEXT, - - CONSTRAINT "notification_pkey" PRIMARY KEY ("id") -); diff --git a/prisma/migrations/20250417145101_settings_notification_text/migration.sql b/prisma/migrations/20250417145101_settings_notification_text/migration.sql deleted file mode 100644 index 1999d54..0000000 --- a/prisma/migrations/20250417145101_settings_notification_text/migration.sql +++ /dev/null @@ -1,2 +0,0 @@ --- AlterTable -ALTER TABLE "settings" ADD COLUMN "notification_text" TEXT; diff --git a/prisma/migrations/20250418093116_host_columns/migration.sql b/prisma/migrations/20250418093116_host_columns/migration.sql deleted file mode 100644 index daa5a51..0000000 --- a/prisma/migrations/20250418093116_host_columns/migration.sql +++ /dev/null @@ -1,3 +0,0 @@ --- AlterTable -ALTER TABLE "server" ADD COLUMN "host" BOOLEAN NOT NULL DEFAULT false, -ADD COLUMN "hostServer" TEXT; diff --git a/prisma/migrations/20250418101029_host_server_string_int/migration.sql b/prisma/migrations/20250418101029_host_server_string_int/migration.sql deleted file mode 100644 index 378b63f..0000000 --- a/prisma/migrations/20250418101029_host_server_string_int/migration.sql +++ /dev/null @@ -1,9 +0,0 @@ -/* - Warnings: - - - The `hostServer` column on the `server` table would be dropped and recreated. This will lead to data loss if there is data in the column. - -*/ --- AlterTable -ALTER TABLE "server" DROP COLUMN "hostServer", -ADD COLUMN "hostServer" INTEGER; diff --git a/prisma/migrations/20250419110503_gotify_and_ntfy_notification_column/migration.sql b/prisma/migrations/20250419110503_gotify_and_ntfy_notification_column/migration.sql deleted file mode 100644 index 0fa4612..0000000 --- a/prisma/migrations/20250419110503_gotify_and_ntfy_notification_column/migration.sql +++ /dev/null @@ -1,5 +0,0 @@ --- AlterTable -ALTER TABLE "notification" ADD COLUMN "gotifyToken" TEXT, -ADD COLUMN "gotifyUrl" TEXT, -ADD COLUMN "ntfyToken" TEXT, -ADD COLUMN "ntfyUrl" TEXT; diff --git a/prisma/migrations/20250419131018_icon_in_server_model/migration.sql b/prisma/migrations/20250419131018_icon_in_server_model/migration.sql deleted file mode 100644 index 96ab6d5..0000000 --- a/prisma/migrations/20250419131018_icon_in_server_model/migration.sql +++ /dev/null @@ -1,2 +0,0 @@ --- AlterTable -ALTER TABLE "server" ADD COLUMN "icon" TEXT; diff --git a/prisma/migrations/20250419180224_monitoring/migration.sql b/prisma/migrations/20250419180224_monitoring/migration.sql deleted file mode 100644 index c938471..0000000 --- a/prisma/migrations/20250419180224_monitoring/migration.sql +++ /dev/null @@ -1,7 +0,0 @@ --- AlterTable -ALTER TABLE "server" ADD COLUMN "cpuUsage" TEXT, -ADD COLUMN "diskUsage" TEXT, -ADD COLUMN "monitoring" BOOLEAN NOT NULL DEFAULT false, -ADD COLUMN "monitoringURL" TEXT, -ADD COLUMN "online" BOOLEAN NOT NULL DEFAULT true, -ADD COLUMN "ramUsage" TEXT; diff --git a/prisma/migrations/20250421111514_settings_notification_text_application_and_server/migration.sql b/prisma/migrations/20250421111514_settings_notification_text_application_and_server/migration.sql deleted file mode 100644 index d3498a8..0000000 --- a/prisma/migrations/20250421111514_settings_notification_text_application_and_server/migration.sql +++ /dev/null @@ -1,10 +0,0 @@ -/* - Warnings: - - - You are about to drop the column `notification_text` on the `settings` table. All the data in the column will be lost. - -*/ --- AlterTable -ALTER TABLE "settings" DROP COLUMN "notification_text", -ADD COLUMN "notification_text_application" TEXT, -ADD COLUMN "notification_text_server" TEXT; diff --git a/prisma/migrations/20250421112542_server_history/migration.sql b/prisma/migrations/20250421112542_server_history/migration.sql deleted file mode 100644 index 2a14543..0000000 --- a/prisma/migrations/20250421112542_server_history/migration.sql +++ /dev/null @@ -1,12 +0,0 @@ --- CreateTable -CREATE TABLE "server_history" ( - "id" SERIAL NOT NULL, - "serverId" INTEGER NOT NULL DEFAULT 1, - "online" BOOLEAN NOT NULL DEFAULT true, - "cpuUsage" TEXT, - "ramUsage" TEXT, - "diskUsage" TEXT, - "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, - - CONSTRAINT "server_history_pkey" PRIMARY KEY ("id") -); diff --git a/prisma/migrations/20250421132642_pushover/migration.sql b/prisma/migrations/20250421132642_pushover/migration.sql deleted file mode 100644 index b6b7e69..0000000 --- a/prisma/migrations/20250421132642_pushover/migration.sql +++ /dev/null @@ -1,3 +0,0 @@ --- AlterTable -ALTER TABLE "notification" ADD COLUMN "pushoverToken" TEXT, -ADD COLUMN "pushoverUser" TEXT; diff --git a/prisma/migrations/20250421132732_pushover_url/migration.sql b/prisma/migrations/20250421132732_pushover_url/migration.sql deleted file mode 100644 index 5575f5f..0000000 --- a/prisma/migrations/20250421132732_pushover_url/migration.sql +++ /dev/null @@ -1,2 +0,0 @@ --- AlterTable -ALTER TABLE "notification" ADD COLUMN "pushoverUrl" TEXT; diff --git a/prisma/migrations/20250423190419_test_notification/migration.sql b/prisma/migrations/20250423190419_test_notification/migration.sql deleted file mode 100644 index f15ee09..0000000 --- a/prisma/migrations/20250423190419_test_notification/migration.sql +++ /dev/null @@ -1,7 +0,0 @@ --- CreateTable -CREATE TABLE "test_notification" ( - "id" SERIAL NOT NULL, - "notificationId" INTEGER NOT NULL, - - CONSTRAINT "test_notification_pkey" PRIMARY KEY ("id") -); diff --git a/prisma/migrations/20250424143929_add_ignore_not_found_err_field/migration.sql b/prisma/migrations/20250424143929_add_ignore_not_found_err_field/migration.sql deleted file mode 100644 index a6c0bc1..0000000 --- a/prisma/migrations/20250424143929_add_ignore_not_found_err_field/migration.sql +++ /dev/null @@ -1,2 +0,0 @@ --- AlterTable -ALTER TABLE "application" ADD COLUMN "ignoreNotFoundErr" BOOLEAN NOT NULL DEFAULT false; \ No newline at end of file diff --git a/prisma/migrations/20250426131205_uptime_column_in_server_modell/migration.sql b/prisma/migrations/20250426131205_uptime_column_in_server_modell/migration.sql deleted file mode 100644 index dbbbc9b..0000000 --- a/prisma/migrations/20250426131205_uptime_column_in_server_modell/migration.sql +++ /dev/null @@ -1,11 +0,0 @@ -/* - Warnings: - - - You are about to drop the column `ignoreNotFoundErr` on the `application` table. All the data in the column will be lost. - -*/ --- AlterTable -ALTER TABLE "application" DROP COLUMN "ignoreNotFoundErr"; - --- AlterTable -ALTER TABLE "server" ADD COLUMN "uptime" TEXT; diff --git a/prisma/migrations/20250427124325_notification_name_and_application_uptime_check_url/migration.sql b/prisma/migrations/20250427124325_notification_name_and_application_uptime_check_url/migration.sql deleted file mode 100644 index 83d9b12..0000000 --- a/prisma/migrations/20250427124325_notification_name_and_application_uptime_check_url/migration.sql +++ /dev/null @@ -1,11 +0,0 @@ -/* - Warnings: - - - Added the required column `name` to the `notification` table without a default value. This is not possible if the table is not empty. - -*/ --- AlterTable -ALTER TABLE "application" ADD COLUMN "uptimecheckUrl" TEXT; - --- AlterTable -ALTER TABLE "notification" ADD COLUMN "name" TEXT NOT NULL; diff --git a/prisma/migrations/migration_lock.toml b/prisma/migrations/migration_lock.toml deleted file mode 100644 index 044d57c..0000000 --- a/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 (e.g., Git) -provider = "postgresql"