Add required checkbox to custom fields

This commit is contained in:
Lawrence Elitzer 2020-08-31 07:58:45 -05:00
parent 428e558108
commit 1914591f46
3 changed files with 15 additions and 5 deletions

View file

@ -0,0 +1,8 @@
exports.up = (knex, Promise) => (async() => {
await knex.schema.table('custom_fields', function(t) {
t.boolean('required').notNull().defaultTo(0).after('default_value');
});
})();
exports.down = (knex, Promise) => (async() => {
})();