feat(appstore): add service volumes and published ports
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
import { BaseMigration } from './base-migration.ts';
|
||||
import type { TQueryFunction } from '../types.ts';
|
||||
|
||||
export class Migration016ServiceVolumes extends BaseMigration {
|
||||
readonly version = 16;
|
||||
readonly description = 'Add persistent volume declarations to services';
|
||||
|
||||
up(query: TQueryFunction): void {
|
||||
query(`ALTER TABLE services ADD COLUMN volumes TEXT DEFAULT '[]'`);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
import { BaseMigration } from './base-migration.ts';
|
||||
import type { TQueryFunction } from '../types.ts';
|
||||
|
||||
export class Migration017ServicePublishedPorts extends BaseMigration {
|
||||
readonly version = 17;
|
||||
readonly description = 'Add raw published port declarations to services';
|
||||
|
||||
up(query: TQueryFunction): void {
|
||||
query(`ALTER TABLE services ADD COLUMN published_ports TEXT DEFAULT '[]'`);
|
||||
}
|
||||
}
|
||||
@@ -22,6 +22,8 @@ import { Migration012GfsRetention } from './migration-012-gfs-retention.ts';
|
||||
import { Migration013AppTemplateVersion } from './migration-013-app-template-version.ts';
|
||||
import { Migration014ContainerArchive } from './migration-014-containerarchive.ts';
|
||||
import { Migration015SmartProxyPlatformService } from './migration-015-smartproxy-platform-service.ts';
|
||||
import { Migration016ServiceVolumes } from './migration-016-service-volumes.ts';
|
||||
import { Migration017ServicePublishedPorts } from './migration-017-service-published-ports.ts';
|
||||
import type { BaseMigration } from './base-migration.ts';
|
||||
|
||||
export class MigrationRunner {
|
||||
@@ -48,6 +50,8 @@ export class MigrationRunner {
|
||||
new Migration013AppTemplateVersion(),
|
||||
new Migration014ContainerArchive(),
|
||||
new Migration015SmartProxyPlatformService(),
|
||||
new Migration016ServiceVolumes(),
|
||||
new Migration017ServicePublishedPorts(),
|
||||
].sort((a, b) => a.version - b.version);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user