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
Hi, I'm using the lumen migrations for the failed_jobs table... So, I changed the name for the table to "migrations_doctrine" in the config file.. But now each time I try to add a new migration I get errors about:
An exception occurred while executing 'CREATE TABLE migrations_doctrine (version VARCHAR(255) NOT NULL, PRIMARY KEY(version)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB':
SQLSTATE[42S01]: Base table or view already exists: 1050 Table 'migrations_doctrine' already exists
Should I blacklist migrations_doctrine too?
The text was updated successfully, but these errors were encountered:
I did.. but it didn't work. Apparently the setting is being used for creation, but when the doctrine/migrations library checks if the table exists it fails (because it wouldn't be trying to create it if it were using the "migrations" name), but when it tries to create it uses the correct name (which does exists) and then fails.. I ended up reverting to "migrations" and renamed the lumen's one to "migrations_lumen".. and voila.. everything works as expected...
I think there's a bug on the "check if migrations table_name exists". But I have no time to debug it as the project is demanding me a lot of my attention.. But at least I got it working and maybe someone with better knowledge about the internals of the library can check if that's actually the problem
Hi, I'm using the lumen migrations for the failed_jobs table... So, I changed the name for the table to "migrations_doctrine" in the config file.. But now each time I try to add a new migration I get errors about:
Should I blacklist migrations_doctrine too?
The text was updated successfully, but these errors were encountered: