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
Looks like migration update with -g=0 generates the same columns alter code over and over with tinyInteger or smallInteger.
Also, still with -g=0 parameter, it generates double autoincremet primary key string when the first time migration generate was in g=1 mode, string like this
The text was updated successfully, but these errors were encountered:
andrewpros
changed the title
Generating alter column when not needed.
Generating alter column when not needed and autocomplete primary issue
Aug 18, 2019
Could you paste here SQL for the table that makes this problem? Initial SQL and SQL for update. And please state the DB engine you are using.
Do I understand it correctly? - generating that migration with -g=0 and then generating update migration without any change creates the migration with alters?
Yeah, generating migration update with the same set of parameters generates alters but with exactly the same migration code for tinyInteger or smallInteger that is already there.
I will provide more details later.
Hi.
Looks like migration update with -g=0 generates the same columns alter code over and over with tinyInteger or smallInteger.
Also, still with -g=0 parameter, it generates double autoincremet primary key string when the first time migration generate was in g=1 mode, string like this
$this->integer(11)->notNull()->append('AUTO_INCREMENT PRIMARY KEY AUTO_INCREMENT PRIMARY KEY')
The text was updated successfully, but these errors were encountered: