1 | <?php |
||
6 | use yii\db\Schema; |
||
7 | |||
8 | class m150626_000002_create_audit_data extends Migration |
||
9 | { |
||
10 | const TABLE = '{{%audit_data}}'; |
||
11 | |||
12 | public function up() |
||
25 | |||
26 | public function down() |
||
27 | { |
||
28 | if ($this->db->driverName != 'sqlite') { |
||
29 | $this->dropForeignKey('fk_audit_data_entry_id', self::TABLE); |
||
30 | } |
||
31 | $this->dropTable(self::TABLE); |
||
32 | } |
||
34 |