Skip to content
This repository has been archived by the owner on Jul 16, 2021. It is now read-only.

[Bug] migration Lumen 6.0 ->default(value); #1832

Closed
frama21 opened this issue Sep 15, 2019 · 5 comments
Closed

[Bug] migration Lumen 6.0 ->default(value); #1832

frama21 opened this issue Sep 15, 2019 · 5 comments

Comments

@frama21
Copy link

frama21 commented Sep 15, 2019

i have migration file with this column :

$table->tinyInteger('access')->default(0);

it throw a error like this :

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '('0'), `uuid` varchar(255) null, `provider` varchar(255) null, at line 1

then i move the ->default(0) to another place in the same file it still throw error like that
then i remove the ->default(0) and place default to model it work normal
but every table and column using ->default(value) it throw same error like previous

but in Lumen 5.8 it's not throwing error like that

i using :
Lumen 6.0
MySQL 5.7
PHP 7.2

@frama21 frama21 changed the title [Bug] migration Lumen ->default(value); [Bug] migration Lumen 6.0 ->default(value); Sep 15, 2019
@staudenmeir
Copy link

This will be fixed in the next release of illuminate/database: laravel/framework#29943

@frama21
Copy link
Author

frama21 commented Sep 17, 2019

Please Mention me if this issues was fixed

@nabihnadhif
Copy link

nabihnadhif commented Sep 19, 2019

When the next release (6.0.3) will be published? We pushed our application to the production environment yesterday and found this bug today.
We think about doing a rollback to version 5.8... :/

@driesvints
Copy link
Member

I'll try to get this fixed with Taylor later today.

@driesvints
Copy link
Member

v6.0.3 of the illuminate components should be released by now.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants