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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
25 changed files with 0 additions and 166 deletions

View File

@ -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")
);

View File

@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "application" ADD COLUMN "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP;

View File

@ -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")
);

View File

@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "application" ADD COLUMN "serverId" INTEGER NOT NULL DEFAULT 1;

View File

@ -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")
);

View File

@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "application" ADD COLUMN "online" BOOLEAN NOT NULL DEFAULT true;

View File

@ -1,5 +0,0 @@
-- AlterTable
ALTER TABLE "server" ADD COLUMN "cpu" TEXT,
ADD COLUMN "disk" TEXT,
ADD COLUMN "gpu" TEXT,
ADD COLUMN "ram" TEXT;

View File

@ -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");

View File

@ -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")
);

View File

@ -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")
);

View File

@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "settings" ADD COLUMN "notification_text" TEXT;

View File

@ -1,3 +0,0 @@
-- AlterTable
ALTER TABLE "server" ADD COLUMN "host" BOOLEAN NOT NULL DEFAULT false,
ADD COLUMN "hostServer" TEXT;

View File

@ -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;

View File

@ -1,5 +0,0 @@
-- AlterTable
ALTER TABLE "notification" ADD COLUMN "gotifyToken" TEXT,
ADD COLUMN "gotifyUrl" TEXT,
ADD COLUMN "ntfyToken" TEXT,
ADD COLUMN "ntfyUrl" TEXT;

View File

@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "server" ADD COLUMN "icon" TEXT;

View File

@ -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;

View File

@ -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;

View File

@ -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")
);

View File

@ -1,3 +0,0 @@
-- AlterTable
ALTER TABLE "notification" ADD COLUMN "pushoverToken" TEXT,
ADD COLUMN "pushoverUser" TEXT;

View File

@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "notification" ADD COLUMN "pushoverUrl" TEXT;

View File

@ -1,7 +0,0 @@
-- CreateTable
CREATE TABLE "test_notification" (
"id" SERIAL NOT NULL,
"notificationId" INTEGER NOT NULL,
CONSTRAINT "test_notification_pkey" PRIMARY KEY ("id")
);

View File

@ -1,2 +0,0 @@
-- AlterTable
ALTER TABLE "application" ADD COLUMN "ignoreNotFoundErr" BOOLEAN NOT NULL DEFAULT false;

View File

@ -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;

View File

@ -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;

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"