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
Yii 2 migrations encourage to use shortcut methods from SchemaBuilderTrait but it's still possible to use plain text descriptions that were in use before Yii 2.0.6. Question is if that should be handled as well by this extension because right now is not. I need to investigate.
Apparently PostgreSQL column altering way is different from other DBMS and for example requires special statement to change default value or doesn't allow changing column type and default value at once (in single ALTER COLUMN statement). Am I right here?
Yii detects special statements and only decodes column type if there are none. This extension definitely needs to do the same.
There is related to above problem bug issued in Yii - when altering column using new column definition with more than a type like:
I've decided that migrations using column data that is not instance of ColumnSchemaBuilder will not be handled by this extension (as these never were anyway) but from now on extracting such migrations exception will be thrown.
As for (2) and (3) - I've added PR for the bug mentioned here so hopefully it will be fixed in Yii 2.0.19.
Yii 2 migrations encourage to use shortcut methods from
SchemaBuilderTrait
but it's still possible to use plain text descriptions that were in use before Yii 2.0.6. Question is if that should be handled as well by this extension because right now is not. I need to investigate.Apparently PostgreSQL column altering way is different from other DBMS and for example requires special statement to change default value or doesn't allow changing column type and default value at once (in single
ALTER COLUMN
statement). Am I right here?Yii detects special statements and only decodes column type if there are none. This extension definitely needs to do the same.
There is related to above problem bug issued in Yii - when altering column using new column definition with more than a type like:
PostgreSQL throws error. It would be nice for generated statement to be correct in that case. I'll take a look at this as well.
The text was updated successfully, but these errors were encountered: