migrations
bensialih opened this issue · comments
Abdel Hakim Bensiali commented
Issue running migration on postgres
getting the following error
SQLSTATE[42601]: Syntax error: 7 ERROR: syntax error at or near "MODIFY"
LINE 1: ALTER TABLE theme_options MODIFY value TEXT NULL
I recommend you remove the alter statements
DB::statement('ALTER TABLE theme_options MODIFY value TEXT NULL');
in file
set_theme_option_nullable
seems ok after that
will fork repo then resubmit
Thanks
Justin Phan commented
Ok I see,
I did not use Postgres SQL yet.
I will use doctrine/dbal
to modify columns instead of raw SQL.
Justin Phan commented
Used doctrine/dbal
to modify columns instead of raw SQL.