diff --git a/console/migrations/m150922_094313_change_key_ImportFiles.php b/console/migrations/m150922_094313_change_key_ImportFiles.php new file mode 100644 index 0000000..e1f63db --- /dev/null +++ b/console/migrations/m150922_094313_change_key_ImportFiles.php @@ -0,0 +1,21 @@ +dropIndex('importer_id', '{{%importer_files}}'); + $this->createIndex('importer_id', '{{%importer_files}}', 'importer_id, upload_time', false); + } + + public function down() + { + $this->dropIndex('importer_id', '{{%importer_files}}'); + $this->createIndex('importer_id', '{{%importer_files}}', 'importer_id, time_start', false); + } + + +} -- libgit2 0.21.4