You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's an issue with this feature when running migrations. It creates the adonis schema table without the prefix, then tries to select from it with the prefix.
With prefix set as '_test'
./ace migration:run
createtableif not exists `adonis_schema` (`id`int unsigned not null auto_increment primary key, `name`varchar(255), `batch`int, `migration_time`timestamp)'select `name` as `name`, `name` from `live_adonis_schema` order by `name` asc'
Error: select`name`as`name`, `name`from`test_adonis_schema`order by`name`asc- ER_NO_SUCH_TABLE: Table 'test_adonis_schema' doesn't exist
Sadly setting a custom migrationsTable config value doesn't get around this, as it also inconsistently prefixes the custom value
The text was updated successfully, but these errors were encountered:
Schema commands should never prefix the table name and instead the end-users should provide the
actual tablename, also fixed where lucid itself was selecting migrations table with prefix
Closes#105
RE: The new prefix feature - #58
There's an issue with this feature when running migrations. It creates the adonis schema table without the prefix, then tries to select from it with the prefix.
With prefix set as '_test'
./ace migration:run
Sadly setting a custom migrationsTable config value doesn't get around this, as it also inconsistently prefixes the custom value
The text was updated successfully, but these errors were encountered: