fix: don't import schema file when in schema dump ci

If you're importing the same file as you're editing, it's not too useful. For example, one could edit the schema, add an entry to the bottom to the migrations table, and the ci will import it when running all migrations before generating the new dump. The new dump would therefore include what the schema file already had instead of the sql that the laravel migrations generated.
This commit is contained in:
Roardom
2025-04-09 21:30:03 +00:00
parent bd5309c16e
commit ea2cbbb034

View File

@@ -54,7 +54,7 @@ jobs:
- name: Clear Application Cache
run: php artisan optimize:clear
- name: Run Migrations
run: php artisan migrate --force
run: php artisan migrate --force --schema-path=database/schema/mysql-schema-new.sql
env:
DB_CONNECTION: mysql
DB_HOST: 127.0.0.1