Skip to content

Commit f74f52f

Browse files
committed
feat: add status to environment service
1 parent 56b6d85 commit f74f52f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

services/api/database/migrations/20250312000000_environment_idling_status.js renamed to services/api/database/migrations/20250908000000_environment_idling_status.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ exports.up = async function(knex) {
77
.alterTable('environment', (table) => {
88
table.boolean('idled').notNullable().defaultTo(0);
99
})
10+
.alterTable('environment_service', function (table) {
11+
table.enu('status', ['stopped', 'running']);
12+
})
1013
};
1114

1215
/**
@@ -18,4 +21,7 @@ exports.down = async function(knex) {
1821
.alterTable('environment', (table) => {
1922
table.dropColumn('idled');
2023
})
24+
.alterTable('environment_service', (table) => {
25+
table.dropColumn('status');
26+
})
2127
};

0 commit comments

Comments
 (0)