src/migrations/m150923_140300_properties.php
public function down()
    {
        $this->db->createCommand("SET foreign_key_checks = 0")->execute();
        $this->dropTable('{{%property_property_group}}');

        $this->dropTable('{{%property_translation}}');
        $this->dropTable('{{%property}}');
        $this->dropTable('{{%property_group_translation}}');
        $this->dropTable('{{%property_group}}');

        $this->dropTable('{{%property_storage}}');

        $this->dropTable('{{%static_value_translation}}');
        $this->dropTable('{{%static_value}}');

        $this->dropTable(ApplicablePropertyModels::tableName());
        $this->dropTable('{{%property_handlers}}');
        $this->db->createCommand("SET foreign_key_checks = 1")->execute();
    }
public function down()
    {
        $this->db->createCommand("SET foreign_key_checks = 0")->execute();
        $this->dropTable('{{%property_property_group}}');

        $this->dropTable('{{%property_translation}}');
        $this->dropTable('{{%property}}');
        $this->dropTable('{{%property_group_translation}}');
        $this->dropTable('{{%property_group}}');

        $this->dropTable('{{%property_storage}}');

        $this->dropTable('{{%static_value_translation}}');
        $this->dropTable('{{%static_value}}');

        $this->dropTable(ApplicablePropertyModels::tableName());
        $this->dropTable('{{%property_handlers}}');
        $this->db->createCommand("SET foreign_key_checks = 1")->execute();
    }
public function down ( ) { $ this -> db -> createCommand ( "SET foreign_key_checks = 0" ) -> execute ( ) ; $ this -> dropTable ( '{{%property_property_group}}' ) ; $ this -> dropTable ( '{{%property_translation}}' ) ; $ this -> dropTable ( '{{%property}}' ) ; $ this -> dropTable ( '{{%property_group_translation}}' ) ; $ this -> dropTable ( '{{%property_group}}' ) ; $ this -> dropTable ( '{{%property_storage}}' ) ; $ this -> dropTable ( '{{%static_value_translation}}' ) ; $ this -> dropTable ( '{{%static_value}}' ) ; $ this -> dropTable ( ApplicablePropertyModels :: tableName ( ) ) ; $ this -> dropTable ( '{{%property_handlers}}' ) ; $ this -> db -> createCommand ( "SET foreign_key_checks = 1" ) -> execute ( ) ; }
Removes all properties related tables
Removes all properties related tables