phinx
phinx copied to clipboard
Add schema creation to migration API
Migrations can create databases and tables but not schemas. It is also not valid to create a schema implicitly using the create table API, e.g. $this->table('foo.bar')->create().
PDOException: SQLSTATE[3F000]: Invalid schema name: 7 ERROR: schema "foo" does not exist
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).