Delete prisma/migrations directory

This commit is contained in:
headlessdev
2025-04-27 16:19:31 +02:00
committed by GitHub
parent 51bd61622e
commit 799d71cdae
25 changed files with 0 additions and 166 deletions
@@ -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")
);
@@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "application" ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;
@@ -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")
);
@@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "application" ADD COLUMN "serverId" INTEGER NOT NULL DEFAULT 1;
@@ -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")
);
@@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "application" ADD COLUMN "online" BOOLEAN NOT NULL DEFAULT true;
@@ -1,5 +0,0 @@
-- AlterTable
ALTER TABLE "server" ADD COLUMN "cpu" TEXT,
ADD COLUMN "disk" TEXT,
ADD COLUMN "gpu" TEXT,
ADD COLUMN "ram" TEXT;
@@ -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");
@@ -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")
);
@@ -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")
);
@@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "settings" ADD COLUMN "notification_text" TEXT;
@@ -1,3 +0,0 @@
-- AlterTable
ALTER TABLE "server" ADD COLUMN "host" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "hostServer" TEXT;
@@ -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;
@@ -1,5 +0,0 @@
-- AlterTable
ALTER TABLE "notification" ADD COLUMN "gotifyToken" TEXT,
ADD COLUMN "gotifyUrl" TEXT,
ADD COLUMN "ntfyToken" TEXT,
ADD COLUMN "ntfyUrl" TEXT;
@@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "server" ADD COLUMN "icon" TEXT;
@@ -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;
@@ -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;
@@ -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")
);
@@ -1,3 +0,0 @@
-- AlterTable
ALTER TABLE "notification" ADD COLUMN "pushoverToken" TEXT,
ADD COLUMN "pushoverUser" TEXT;
@@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "notification" ADD COLUMN "pushoverUrl" TEXT;
@@ -1,7 +0,0 @@
-- CreateTable
CREATE TABLE "test_notification" (
"id" SERIAL NOT NULL,
"notificationId" INTEGER NOT NULL,
CONSTRAINT "test_notification_pkey" PRIMARY KEY ("id")
);
@@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "application" ADD COLUMN "ignoreNotFoundErr" BOOLEAN NOT NULL DEFAULT false;
@@ -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;
@@ -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;
-3
View File
@@ -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"