- import all enums for database migrations (check constraints)
All checks were successful
CI Pipeline / japa-tests (push) Successful in 55s
All checks were successful
CI Pipeline / japa-tests (push) Successful in 55s
- npm updates
This commit is contained in:
parent
6fa22aad9b
commit
3ea2e8ca94
7 changed files with 212 additions and 76 deletions
|
@ -19,7 +19,7 @@ export default class Documents extends BaseSchema {
|
|||
.inTable('projects')
|
||||
.onDelete('NO ACTION') // don't delete this doc when project is deleted
|
||||
.onUpdate('NO ACTION');
|
||||
table.enum('type', Object.values(DatasetTypes)).notNullable();
|
||||
table.enum('type', Object.keys(DatasetTypes)).notNullable();
|
||||
table.string('language').notNullable();
|
||||
table.enum('server_state', Object.values(ServerStates)).notNullable().defaultTo("'inprogress'");
|
||||
table.boolean('belongs_to_bibliography').notNullable().defaultTo(false);
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue