mirror of
https://github.com/biersoeckli/QuickStack.git
synced 2026-01-05 19:21:17 -06:00
implemented pvc deployment
This commit is contained in:
18
prisma/migrations/20241106181617_migration/migration.sql
Normal file
18
prisma/migrations/20241106181617_migration/migration.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
-- RedefineTables
|
||||
PRAGMA defer_foreign_keys=ON;
|
||||
PRAGMA foreign_keys=OFF;
|
||||
CREATE TABLE "new_AppVolume" (
|
||||
"id" TEXT NOT NULL PRIMARY KEY,
|
||||
"containerMountPath" TEXT NOT NULL,
|
||||
"size" INTEGER NOT NULL,
|
||||
"accessMode" TEXT NOT NULL DEFAULT 'ReadWriteOnce',
|
||||
"appId" TEXT NOT NULL,
|
||||
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updatedAt" DATETIME NOT NULL,
|
||||
CONSTRAINT "AppVolume_appId_fkey" FOREIGN KEY ("appId") REFERENCES "App" ("id") ON DELETE RESTRICT ON UPDATE CASCADE
|
||||
);
|
||||
INSERT INTO "new_AppVolume" ("appId", "containerMountPath", "createdAt", "id", "size", "updatedAt") SELECT "appId", "containerMountPath", "createdAt", "id", "size", "updatedAt" FROM "AppVolume";
|
||||
DROP TABLE "AppVolume";
|
||||
ALTER TABLE "new_AppVolume" RENAME TO "AppVolume";
|
||||
PRAGMA foreign_keys=ON;
|
||||
PRAGMA defer_foreign_keys=OFF;
|
||||
@@ -170,6 +170,7 @@ model AppVolume {
|
||||
id String @id @default(uuid())
|
||||
containerMountPath String
|
||||
size Int
|
||||
accessMode String @default("rwo")
|
||||
appId String
|
||||
app App @relation(fields: [appId], references: [id])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user