Skip to content

Commit

Permalink
Migration filenames containing numbers are valid (#1981)
Browse files Browse the repository at this point in the history
  • Loading branch information
inahga authored Sep 25, 2023
1 parent 64d46cf commit 9d10220
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/actions/validate-migrations/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ runs:
- name: Ensure all migrations have the proper filename
shell: bash
run: |
REGEX='^(README.md)|([0-9]{14}_[a-z_]+\.(down|up)\.sql$)'
REGEX='^(README.md)|([0-9]{14}_[a-z0-9_]+\.(down|up)\.sql$)'
INVALID_FILES=$(find db/ -mindepth 1 -printf "%f\n" | grep -Pv "$REGEX" || true)
if [ -n "$INVALID_FILES" ]; then
Expand Down

0 comments on commit 9d10220

Please sign in to comment.