public function deleteModuleDatabase($module)
	{
		$config = $this->getModuleConfig($module);
		$tableName = $config['db_table_name'];

		if($config && $tableName) {
			foreach($tableName as $val){
				Yii::app()->db->createCommand("DROP TABLE {$val}")->execute();
			}

		} else
			return false;
	}
public function deleteModuleDatabase($module)
	{
		$config = $this->getModuleConfig($module);
		$tableName = $config['db_table_name'];

		if($config && $tableName) {
			foreach($tableName as $val){
				Yii::app()->db->createCommand("DROP TABLE {$val}")->execute();
			}

		} else
			return false;
	}
public function deleteModuleDatabase ( $ module ) { $ config = $ this -> getModuleConfig ( $ module ) ; $ tableName = $ config [ 'db_table_name' ] ; if ( $ config && $ tableName ) { foreach ( $ tableName as $ val ) { Yii :: app ( ) -> db -> createCommand ( "DROP TABLE {$val}" ) -> execute ( ) ; } } else return false ; }
Delete Module Database
Delete Module Database