Refactor settings model in Prisma schema to rename notification_text field to notification_text_application and add notification_text_server field for improved clarity and organization.

This commit is contained in:
headlessdev 2025-04-21 13:15:30 +02:00
parent f47e22fe27
commit 49eeab4848
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,10 @@
/*
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

@ -56,7 +56,8 @@ model server {
model settings { model settings {
id Int @id @default(autoincrement()) id Int @id @default(autoincrement())
uptime_checks Boolean @default(true) uptime_checks Boolean @default(true)
notification_text String? notification_text_application String?
notification_text_server String?
} }
model user { model user {