backups... backups everywhere

This commit is contained in:
Andras Bacsai
2022-12-02 14:34:06 +01:00
parent 8a00b711be
commit f12d453b5f
12 changed files with 1433 additions and 11 deletions

View File

@@ -467,7 +467,6 @@ async function plausibleAnalytics(service: any, template: any) {
// Disconnect old service data
// await prisma.service.update({ where: { id: service.id }, data: { plausibleAnalytics: { disconnect: true } } })
}
async function migrateSettings(settings: any[], service: any, template: any) {
for (const setting of settings) {
try {
@@ -528,4 +527,4 @@ async function createVolumes(service: any, template: any) {
// console.log('Creating volume', volumeName, path, containerId, 'for service', service.id, ', service name:', service.name)
await prisma.servicePersistentStorage.findFirst({ where: { volumeName, serviceId: service.id } }) || await prisma.servicePersistentStorage.create({ data: { volumeName, path, containerId, predefined: true, service: { connect: { id: service.id } } } })
}
}
}