Bagisto: SQL error when running with sqlite

Created on 4 Apr 2019  路  4Comments  路  Source: bagisto/bagisto

It seems it is not possible to use DB_CONNECTION=sqlite

Getting this error when running:
php artisan migrate --fresh

SQLSTATE[HY000]: General error: 1 Cannot add a NOT NULL column with default value NULL (SQL: alter table "product_reviews" add column "name" varchar not null)

Bug

All 4 comments

You can't add column without default value in sqlite.
error comes from 2019_02_21_145238_alter_product_reviews_table.php file
can i fix it ? but i can't test it right now.

Sure, You can fix it. We will test it.

need to change in migration file 2019_02_21_145238_alter_product_reviews_table.php because if i create new migration file than error will fire from above file. @rahulshukla-webkul

Hi @bergstar

We have Fixed this issues.We will release our next version soon. You can wait for that release otherwise you can clone or download our latest code from git repository.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

farshadff picture farshadff  路  4Comments

mhd-yasser-haddad picture mhd-yasser-haddad  路  4Comments

john7851 picture john7851  路  3Comments

marcelowu picture marcelowu  路  4Comments

MostafaAttia picture MostafaAttia  路  4Comments