Alexander Makarov

Results 1642 comments of Alexander Makarov

The issue is that each DBMS names its keys differently so I would not rely on it. Personally I'm using `idx-table-my_column1-my_column2` and `fk-table-column_1-foreign_table-foreign_column`.

What worries me is that there could be an index for multiple columns and there could be multiple indexes of different types for a single column.

Many foreign keys for a single column happens daily.

That's morning sleepy typo. Of course, I've meant indexes.

https://github.com/yiisoft/yii2/pull/13018

https://github.com/yiisoft/db-migration/issues/5 seems the issue was incorrectly split when moving.

I don't think it's possible w/o breaking compatibility.

In some of my projects I'm using custom Migration class instead: ```php class Migration extends \yii\db\Migration { /** * @inheritdoc */ public function createTable($table, $columns, $options = null) { if...