1 | exports.up = async function(knex, Promise) {
|
2 | await knex.schema.alterTable("content_references", table => {
|
3 | table
|
4 | .boolean("optional")
|
5 | .notNullable()
|
6 | .defaultTo(false);
|
7 | });
|
8 | };
|
9 |
|
10 | exports.down = async function(knex, Promise) {
|
11 | await knex.schema.alterTable("content_references", table => {
|
12 | table.dropColumn("optional");
|
13 | });
|
14 | };
|