-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 1. Removed requirement for barcode to exist in Drupal ticket 2. Made barcode column nullable
- Loading branch information
1 parent
8213ae7
commit d3bfdac
Showing
2 changed files
with
18 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
|
||
exports.up = function(knex, Promise) { | ||
return Promise.all([ | ||
knex.schema.alterTable('tickets', t => { | ||
t.string('barcode', 32).nullable().alter() | ||
}) | ||
]) | ||
}; | ||
|
||
exports.down = function(knex, Promise) { | ||
return Promise.all([ | ||
knex.schema.alterTable('tickets', t => { | ||
t.string('barcode', 32).notNullable().alter() | ||
}) | ||
]) | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters