Skip to content

Commit

Permalink
add manuscript status migration (#4403)
Browse files Browse the repository at this point in the history
  • Loading branch information
dianaguimaraes authored Oct 10, 2024
1 parent e80acd1 commit 12c4f23
Showing 1 changed file with 34 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
module.exports.description = 'Add status to manuscript';

module.exports.up = (migration) => {
const manuscript = migration.editContentType('manuscripts');

manuscript
.createField('status')
.name('Status')
.type('Symbol')
.localized(false)
.required(false)
.validations([
{
in: [
'Waiting for Report',
'Review Compliance Report',
'Waiting for ASAP Reply',
"Waiting for Grantee's Reply",
'Manuscript Resubmitted',
'Submit Final Publication',
'Addendum Required',
'Compliant',
'Closed (other)',
],
},
])
.disabled(false)
.omitted(false);
};

module.exports.down = (migration) => {
const manuscript = migration.editContentType('manuscripts');
manuscript.deleteField('status');
};

0 comments on commit 12c4f23

Please sign in to comment.