Merge pull request #44 from apuc/upload_files_for_all_entitys

Upload files for all entitys
This commit is contained in:
Glambertessa authored and GitHub committed 2020-09-09 15:03:09 +03:00
commit 4af80790c3
11 files changed
+146 -46

No files matched your search

@@ -0,0 +1,30 @@
<?php
use yii\db\Migration;
/**
* Class m200803_135837_add_table_options_to_company_table
*/
class m200803_135837_add_table_options_to_company_table extends Migration
{
/**
* {@inheritdoc}
*/
public function safeUp()
{
if ($this->db->driverName === 'mysql') {
$this->execute('ALTER TABLE company DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE=InnoDB');
}
}
/**
* {@inheritdoc}
*/
public function safeDown()
{
if ($this->db->driverName === 'mysql') {
$this->execute('ALTER TABLE company DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ENGINE=InnoDB');
}
}
}