Why am I getting this warning when using the SQLite driver? I have no problems with the MySQL driver but SQLite is throwing this error.
It does not make sense to me
If you don't want the column to be nullable
- then you need to let Laravel know what the default should be.
One option is an empty string ""
like this
public function up() {
Schema::create('users', function($table) {
$table->date('birthday')->after('id')->default('');
$table->string('last_name')->after('id')->default('');
$table->string('first_name')->after('id')->default('');
});
}