Skip to content

Commit

Permalink
HARMONY-1652: Add migration to add is_complete to workflow_steps
Browse files Browse the repository at this point in the history
  • Loading branch information
indiejames committed Dec 12, 2023
1 parent 0411827 commit 67a1c78
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions db/migrations/20231211182816_add_is_complete_to_worklow_steps.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
exports.up = function(knex) {
return knex.schema
.alterTable('workflow_steps', (t) => {
t.boolean('is_complete').defaultTo(false).notNullable();
});
};

exports.down = function(knex) {
return knex.schema
.alterTable('workflow_steps', (t) => {
t.dropColumn('is_complete');
});
};

0 comments on commit 67a1c78

Please sign in to comment.