mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-04-08 02:52:39 -05:00
Added validations to table creation
- These are not enforced at the DB level, so don't matter here, but adding for consistency / cleanliness
This commit is contained in:
parent
37a684c2c5
commit
61dc52972f
1 changed files with 1 additions and 1 deletions
|
@ -8,7 +8,7 @@ module.exports = recreateTable('newsletters', {
|
|||
sender_name: {type: 'string', maxlength: 191, nullable: false},
|
||||
sender_email: {type: 'string', maxlength: 191, nullable: true},
|
||||
sender_reply_to: {type: 'string', maxlength: 191, nullable: false, defaultTo: 'newsletter', validations: {isIn: [['newsletter', 'support']]}},
|
||||
status: {type: 'string', maxlength: 50, nullable: false, defaultTo: 'active'},
|
||||
status: {type: 'string', maxlength: 50, nullable: false, defaultTo: 'active', validations: {isIn: [['active', 'archived']]}},
|
||||
visibility: {
|
||||
type: 'string',
|
||||
maxlength: 50,
|
||||
|
|
Loading…
Add table
Reference in a new issue