Description
This is a (multiple allowed):
-
bug
-
enhancement
-
feature-discussion (RFC)
-
CakePHP Version: 3.10.4
-
Migrations plugin version: 2.4.2
-
Bake plugin version (if relevant): 1.12.0
-
Database server (MySQL, SQLite, Postgres): MySQL Community Server (GPL) 5.7.37 x86_64
-
PHP Version: 7.4.29
-
Platform / OS: Devilbox (XAMPP-like Docker container) running on macOS Big Sur 11.6.1
What you did
- if your migration file was created with the bake tool or not - yes
- the exact shell command you used -
./bin/cake bake migration_snapshot MySnapshot
- the FULL content of the migration files that cause the issue - N/A just a snapshot of my database
- a way to recreate the schema of your database - N/A for what I'm asking
Expected Behavior
I would like for the entry in the phinxlog table to not be generated, if possible. Perhaps via a CLI switch to bake (--no-phinxlog
)
Actual Behavior
As specified in the docs, once the snapshot is generated a new entry is added to phinxlog and it is marked as migrated.
That's nice for most, but my workflow is to immediately move the generated migration out of the main directory to another one because it is specifically generated for the unit tests. So when I then run ./bin/cake migrations status
I get ** MISSING **
next to it.
I would prefer to be able to specify not to generate the phinxlog table entry, if possible. I checked the docs and I do not see support for any such flag.