You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
478 B
JavaScript
15 lines
478 B
JavaScript
'use strict';
|
|
|
|
module.exports = {
|
|
up: function createCheckConstraintViolationTable(knex, errorHandler) {
|
|
return knex.schema.createTable("check_constraint_violation", (table) => {
|
|
table.increments("id");
|
|
table.enum("number_value", ["one", "two", "three"]);
|
|
table.text("name");
|
|
}).catch(errorHandler);
|
|
},
|
|
down: function dropCheckConstraintViolationTable(knex, errorHandler) {
|
|
return knex.schema.dropTable("check_constraint_violation").catch(errorHandler);
|
|
}
|
|
};
|