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
This migration fails on PostgreSql database version 12 stating that
alter column slug in table {{%article}} to string(255) NOT NULL ...Exception: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error (near: "NOT") LINE 1: ...BLE "article" ALTER COLUMN "slug" TYPE varchar(255) NOT NULL
It runs with mysql database with no error though.
A possible solution might be placing a condition for checking and running the query in accordance with db type
The text was updated successfully, but these errors were encountered:
XzAeRo
changed the title
Migration error with postgresql
Make migrations RDBMS agnostic
Jan 22, 2020
This migration fails on PostgreSql database version 12 stating that
alter column slug in table {{%article}} to string(255) NOT NULL ...Exception: SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error (near: "NOT") LINE 1: ...BLE "article" ALTER COLUMN "slug" TYPE varchar(255) NOT NULL
It runs with mysql database with no error though.
A possible solution might be placing a condition for checking and running the query in accordance with db type
The text was updated successfully, but these errors were encountered: