An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.
PHP coolifydatabasesdeploymentdockerdocker-composeinertiajslaravelmariadbmysqlnextjsnodejsphppostgresredisself-hostedself-hostingserverstatic-sitesveltesvelte5
migration for fider
Andras Bacsai2bd91fa97090
diff --git a/prisma/migrations/20220429202516_fider/migration.sql b/prisma/migrations/20220429202516_fider/migration.sqlnew file mode 100644index 0000000000..a6d31a24d3--- /dev/null+++ b/prisma/migrations/20220429202516_fider/migration.sql@@ -0,0 +1,25 @@+-- CreateTable+CREATE TABLE "Fider" (+ "id" TEXT NOT NULL PRIMARY KEY,+ "serviceId" TEXT NOT NULL,+ "postgresqlUser" TEXT NOT NULL,+ "postgresqlPassword" TEXT NOT NULL,+ "postgresqlDatabase" TEXT NOT NULL,+ "postgresqlPublicPort" INTEGER,+ "jwtSecret" TEXT NOT NULL,+ "emailNoreply" TEXT,+ "emailMailgunApiKey" TEXT,+ "emailMailgunDomain" TEXT,+ "emailMailgunRegion" TEXT,+ "emailSmtpHost" TEXT,+ "emailSmtpPort" INTEGER,+ "emailSmtpUser" TEXT,+ "emailSmtpPassword" TEXT,+ "emailSmtpEnableStartTls" BOOLEAN NOT NULL DEFAULT false,+ "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,+ "updatedAt" DATETIME NOT NULL,+ CONSTRAINT "Fider_serviceId_fkey" FOREIGN KEY ("serviceId") REFERENCES "Service" ("id") ON DELETE RESTRICT ON UPDATE CASCADE+);++-- CreateIndex+CREATE UNIQUE INDEX "Fider_serviceId_key" ON "Fider"("serviceId");diff --git a/prisma/schema.prisma b/prisma/schema.prismaindex 1c10822f7d..9930b85051 100644--- a/prisma/schema.prisma+++ b/prisma/schema.prisma@@ -306,6 +306,7 @@ model Service {persistentStorage ServicePersistentStorage[]umami Umami?hasura Hasura?+ fider Fider?}model PlausibleAnalytics {@@ -417,3 +418,25 @@ model Hasura {createdAt DateTime @default(now())updatedAt DateTime @updatedAt}++model Fider {+ id String @id @default(cuid())+ serviceId String @unique+ postgresqlUser String+ postgresqlPassword String+ postgresqlDatabase String+ postgresqlPublicPort Int?+ jwtSecret String+ emailNoreply String?+ emailMailgunApiKey String?+ emailMailgunDomain String?+ emailMailgunRegion String?+ emailSmtpHost String?+ emailSmtpPort Int?+ emailSmtpUser String?+ emailSmtpPassword String?+ emailSmtpEnableStartTls Boolean @default(false)+ service Service @relation(fields: [serviceId], references: [id])+ createdAt DateTime @default(now())+ updatedAt DateTime @updatedAt+}