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