mirror of
https://github.com/BillyOutlast/UNIT3D.git
synced 2026-02-04 03:01:20 +01:00
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:
2
.github/workflows/schema-dump.yml
vendored
2
.github/workflows/schema-dump.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user