Skip to content

Commit

Permalink
Merge pull request #424 from roy-zahor/gate_system
Browse files Browse the repository at this point in the history
Gate system - migrations
  • Loading branch information
roy-zahor authored May 20, 2017
2 parents 91f8a2b + ddcf245 commit 9dabf69
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions migrations/20170519184911_missing_trigger.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,11 @@ exports.up = function (knex, Promise) {
!knex.schema.hasColumn("events", "gate_status") ?
knex.schema.table("events", table => {
table.enu("gate_status", constants.EVENT_GATE_STATUS);
})
: '',
knex.raw("update events set gate_status='early_arrival'")
}).then(
knex.raw("update events set gate_status='early_arrival'")
)
: ''

])
};

Expand Down

0 comments on commit 9dabf69

Please sign in to comment.