Skip to content

Commit

Permalink
chore: ensure migration down matches up
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood committed Dec 5, 2024
1 parent 5c8770d commit 45c145c
Showing 1 changed file with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,25 +49,29 @@ exports.down = async function(knex) {
return knex.schema
.alterTable('advanced_task_definition', function (table) {
table.specificType('description', 'text').defaultTo('').notNullable().alter();
table.string('group_name', 300).alter();
table.string('group_name', 2000).alter();
table.specificType('command', 'text').defaultTo('').alter();
})
.alterTable('environment', function (table) {
table.string('deploy_base_ref', 100).alter();
table.string('deploy_head_ref', 100).alter();
})
.alterTable('environment_fact', function (table) {
table.specificType('description', 'text').defaultTo('').alter();
table.specificType('category', 'text').defaultTo('').alter();
})
.alterTable('environment_problem', function (table) {
table.string('identifier', 100).notNullable().alter();
table.string('lagoon_service', 100).defaultTo('').alter();
table.string('identifier', 300).notNullable().alter();
table.string('lagoon_service', 300).defaultTo('').alter();
table.specificType('description', 'text').defaultTo('').alter();
table.string('version', 100).defaultTo('').alter();
table.string('version', 300).defaultTo('').alter();
})
.alterTable('project', function (table) {
table.json('metadata').defaultTo('{}').alter();
})
.alterTable('s3_file', function (table) {
table.datetime('created').notNullable().defaultTo(knex.fn.now()).alter();
table.datetime('deleted').notNullable().alter();
table.datetime('deleted').notNullable().defaultTo('0000-00-00 00:00:00').alter();
})
.alterTable('organization', function (table) {
table.specificType('description', 'text').notNullable().defaultTo('').alter();
Expand Down

0 comments on commit 45c145c

Please sign in to comment.