Skip to content

Commit

Permalink
more broken migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
tobybellwood committed Feb 13, 2024
1 parent 3589ee8 commit 08ea43f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ exports.up = async function(knex) {
return knex.schema
.alterTable('environment_service', function (table) {
table.string('type', 300);
table.string('name', 300);
table.timestamp('updated').notNullable().defaultTo(knex.fn.now());
table.timestamp('created').notNullable().defaultTo(knex.fn.now());
table.unique(['name', 'environment'], {indexName: 'service_environment'});
Expand All @@ -27,6 +28,7 @@ exports.down = async function(knex) {
table.dropColumn('type');
table.dropColumn('updated');
table.dropColumn('created');
table.dropUnique(['name', 'environment'], 'service_environment');
})
.dropTable('environment_service_container')
};
1 change: 0 additions & 1 deletion services/api/database/migrations/FORCE_ACTIONS_RUN.md

This file was deleted.

0 comments on commit 08ea43f

Please sign in to comment.