Matthew Peveler

Results 298 comments of Matthew Peveler

How are you calling phinx? If using the CLI, target should only be set if you were to do `phinx migrate --target foo`, though not sure if it's a feature...

The `-t` flag is target for `migrate` and `rollback` and then template for `create` and `seed:create` commands, and they do not match usage of each other. There is no `template`...

That's what I said. `-t` does different things depending on the command you're using. ## create / seed:create ``` bin/phinx create --help Phinx by CakePHP - https://phinx.org. Description: Create a...

My view would be that generated migrations should be named `V` and it would be PSR-4 compliant, and all new classes should sort after the "old style" ones. E.g, `phinx...

I think it's probably a combination of "best practices of PHP", "some people like running their migrations through their linter which enforces PSR-4", and "some people want to be able...

Similar to `createDatabase`, it should be as easy here as just adding a function in `AbstractMigration.php` called `createSchema($schemaName)` that then calls `$this->adapter->createSchema($schemaName)`.

It feels like (to me) that there should be allowed two types `static::PHINX_TYPE_GEOMETRY` and `static::PHINX_TYPE_GEOGRAPHY` which you can then optionally add the GIS type you want (e.g. POINT, POLYGON, etc.)...

Looking at the PHP docs for [PDO SQLite](https://www.php.net/manual/en/ref.pdo-sqlite.php), I do not see either of these options mentioned. Could you provide a link to somewhere that talks about them, and what...

From the above example, what does `sqlite:foo.db?mode=memory` do? Is it to allow opening multiple different shared caches for in-memory databases?

For `cache=shared` for a non inline memory DB, do we need to use `file:` there as well? When should `file:` be prefixed automatically? Just want to make sure I fully...