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
{{ message }}
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
I added new property in schema, then executed ./yii gii/api. Migration for new column does not have after() but when I apply newly created migration it automatically adds after the last column/property.
In which cases you are facing this issue?
Edit
Anyway I figured the case where after is nice to have: if we want to add field in between existing fields and not at last position
Migrations for adding new columns should use "AFTER" keyword to make sure order of columns is the same as in schema.
The text was updated successfully, but these errors were encountered: