diff --git a/.github/workflows/migration-review.yml b/.github/workflows/migration-review.yml index 56337a5b04..bbdb280b93 100644 --- a/.github/workflows/migration-review.yml +++ b/.github/workflows/migration-review.yml @@ -32,7 +32,7 @@ jobs: - [ ] Satisfies idempotency requirement (both `up()` and `down()`) - [ ] Does not reference models - - [ ] Filename is in the correct format + - [ ] Filename is in the correct format (and correctly ordered) - [ ] Targets the next minor version - [ ] All code paths have appropriate log messages - [ ] Uses the correct utils diff --git a/ghost/core/.eslintrc.js b/ghost/core/.eslintrc.js index 3e0132ac87..bb72473c20 100644 --- a/ghost/core/.eslintrc.js +++ b/ghost/core/.eslintrc.js @@ -30,7 +30,7 @@ module.exports = { 'core/server/data/migrations/versions/3.*/*' ], rules: { - 'ghost/filenames/match-regex': ['error', '^(?:\\d{2}|\\d{4}(?:-\\d{2}){4})(?:-[a-zA-Z]+){2,}$', true] + 'ghost/filenames/match-regex': ['error', '^(?:\\d{4}(?:-\\d{2}){4,5}|\\d{2})(?:-[a-zA-Z]+){2,}$', true] } }, {