0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/data/migrations/versions/3.1
Sam Lord a21b91cc71 Added lint rules for migrations
refs: https://github.com/TryGhost/Toolbox/issues/105

Lint rules prevent:

* Invalid naming conventions for new migrations
* Loop constructs in migrations - these should be used with caution
and are therefore a warning rule, use `// eslint-disable-next-line
no-restricted-syntax` to prevent this rule from firing where a loop is
required
* Returing within a loop - this is usually meant to be a
continue/break
* Multiple joins - these can be badly performing migrations, so should
be treated with caution, disable the rule for the line if the risk is
understood / the migration cannot be written without it
2021-11-29 16:21:43 +00:00
..
01-add-send-email-when-published-to-posts.js
02-add-email-subject-to-posts-meta.js
03-add-email-preview-permissions.js
04-add-subscribed-flag-to-members.js
05-add-emails-table.js Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
06-add-email-permissions.js
07-add-uuid-field-to-members.js
08-add-uuid-values-to-members.js Added lint rules for migrations 2021-11-29 16:21:43 +00:00
09-add-further-email-permissions.js
10-add-email-error-data-column.js