mirror of
https://github.com/Dokploy/dokploy.git
synced 2026-07-16 03:15:22 +02:00
feat: add optional dockerImage field to database schemas
- Updated MariaDB, MongoDB, MySQL, PostgreSQL, and Redis schemas to include an optional dockerImage field for enhanced configuration flexibility.
This commit is contained in:
@@ -202,6 +202,7 @@ export const apiUpdateMariaDB = createSchema
|
|||||||
.partial()
|
.partial()
|
||||||
.extend({
|
.extend({
|
||||||
mariadbId: z.string().min(1),
|
mariadbId: z.string().min(1),
|
||||||
|
dockerImage: z.string().optional(),
|
||||||
})
|
})
|
||||||
.omit({ serverId: true });
|
.omit({ serverId: true });
|
||||||
|
|
||||||
|
|||||||
@@ -191,6 +191,7 @@ export const apiUpdateMongo = createSchema
|
|||||||
.partial()
|
.partial()
|
||||||
.extend({
|
.extend({
|
||||||
mongoId: z.string().min(1),
|
mongoId: z.string().min(1),
|
||||||
|
dockerImage: z.string().optional(),
|
||||||
})
|
})
|
||||||
.omit({ serverId: true });
|
.omit({ serverId: true });
|
||||||
|
|
||||||
|
|||||||
@@ -199,6 +199,7 @@ export const apiUpdateMySql = createSchema
|
|||||||
.partial()
|
.partial()
|
||||||
.extend({
|
.extend({
|
||||||
mysqlId: z.string().min(1),
|
mysqlId: z.string().min(1),
|
||||||
|
dockerImage: z.string().optional(),
|
||||||
})
|
})
|
||||||
.omit({ serverId: true });
|
.omit({ serverId: true });
|
||||||
|
|
||||||
|
|||||||
@@ -192,6 +192,7 @@ export const apiUpdatePostgres = createSchema
|
|||||||
.partial()
|
.partial()
|
||||||
.extend({
|
.extend({
|
||||||
postgresId: z.string().min(1),
|
postgresId: z.string().min(1),
|
||||||
|
dockerImage: z.string().optional(),
|
||||||
})
|
})
|
||||||
.omit({ serverId: true });
|
.omit({ serverId: true });
|
||||||
|
|
||||||
|
|||||||
@@ -178,6 +178,7 @@ export const apiUpdateRedis = createSchema
|
|||||||
.partial()
|
.partial()
|
||||||
.extend({
|
.extend({
|
||||||
redisId: z.string().min(1),
|
redisId: z.string().min(1),
|
||||||
|
dockerImage: z.string().optional(),
|
||||||
})
|
})
|
||||||
.omit({ serverId: true });
|
.omit({ serverId: true });
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user