Skip to content

Commit f4ce304

Browse files
authored
Merge pull request #4013 from Dokploy/3983-custom-database-docker-image-reset-to-default-for-any-unrelated-change
feat: add optional dockerImage field to database schemas
2 parents baaa470 + bb521f3 commit f4ce304

File tree

5 files changed

+5
-0
lines changed

5 files changed

+5
-0
lines changed

packages/server/src/db/schema/mariadb.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ export const apiUpdateMariaDB = createSchema
202202
.partial()
203203
.extend({
204204
mariadbId: z.string().min(1),
205+
dockerImage: z.string().optional(),
205206
})
206207
.omit({ serverId: true });
207208

packages/server/src/db/schema/mongo.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ export const apiUpdateMongo = createSchema
191191
.partial()
192192
.extend({
193193
mongoId: z.string().min(1),
194+
dockerImage: z.string().optional(),
194195
})
195196
.omit({ serverId: true });
196197

packages/server/src/db/schema/mysql.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ export const apiUpdateMySql = createSchema
199199
.partial()
200200
.extend({
201201
mysqlId: z.string().min(1),
202+
dockerImage: z.string().optional(),
202203
})
203204
.omit({ serverId: true });
204205

packages/server/src/db/schema/postgres.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,7 @@ export const apiUpdatePostgres = createSchema
192192
.partial()
193193
.extend({
194194
postgresId: z.string().min(1),
195+
dockerImage: z.string().optional(),
195196
})
196197
.omit({ serverId: true });
197198

packages/server/src/db/schema/redis.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ export const apiUpdateRedis = createSchema
178178
.partial()
179179
.extend({
180180
redisId: z.string().min(1),
181+
dockerImage: z.string().optional(),
181182
})
182183
.omit({ serverId: true });
183184

0 commit comments

Comments
 (0)