Drop all tables from the database.

@return void
492622
public function dropAllTables()
    {
        $tables = [];

        foreach ($this->getAllTables() as $row) {
            $row = (array) $row;

            $tables[] = reset($row);
        }

        if (empty($tables)) {
            return;
        }

        $this->disableForeignKeyConstraints();

        $this->connection->statement(
            $this->grammar->compileDropAllTables($tables)
        );

        $this->enableForeignKeyConstraints();
    }
58915
public function down()
    {
        $connection = config('admin.database.connection') ?: config('database.default');

        $table = config('admin.extensions.reporter.table', 'laravel_exceptions');

        Schema::connection($connection)->dropIfExists($table);
    }
672219
public function down()
    {
        DB::statement('SET FOREIGN_KEY_CHECKS=0;');
        if (Schema::hasTable('tbl_brand_options')) {
            DB::table('tbl_brand_options')->delete();
        }
        Schema::dropIfExists('tbl_brand_options');
        if (Schema::hasTable('tbl_brand_templates')) {
            DB::table('tbl_brand_templates')->delete();
        }
        Schema::dropIfExists('tbl_brand_templates');
        DB::statement('SET FOREIGN_KEY_CHECKS=1;');
    }
976946
def drop_all(self):
        '''  '''
        self.drop(self.get_table_names())
        if self.persistent:
            with self._lock:
                try:
                    dbfolder = os.path.join(self.root_dir, self.name)
                    if os.path.exists(dbfolder) and not os.listdir(dbfolder):
                        rmtree(dbfolder)
                except (IOError, WindowsError):
                    self._print('Failed to delete folder %s when dropping database' % self.name)
                finally:
                    del self
315763
protected function drop()
    {
        if ($this->tableExist($this->tableName)) {
            $this->dbHandler->exec('DROP TABLE ' . $this->tableName);
        }
    }
103562
public static function deleteArchiveTables()
    {
        foreach (ArchiveTableCreator::getTablesArchivesInstalled() as $table) {
            Log::debug("Dropping table $table");

            Db::query("DROP TABLE IF EXISTS `$table`");
        }

        ArchiveTableCreator::refreshTableList($forceReload = true);
    }
12783
protected function dropViews()
    {
        $views = $this->db->query(
            'SHOW FULL TABLES WHERE TABLE_TYPE LIKE "VIEW"',
            DbAdapter::QUERY_MODE_EXECUTE
        );

        foreach ($views as $view) {
            $this->db->query(
                'DROP VIEW '.reset($view),
                DbAdapter::QUERY_MODE_EXECUTE
            );
        }
    }
1291663
public function down()
    {
        DB::statement('alter table sites drop index sites_default');
        DB::statement('alter table album_asset drop index album_asset_asset_id');
        DB::statement('alter table assets drop index assets_created_at_asc');
        DB::statement('alter table assets drop index assets_created_at_desc');
        DB::statement('alter table albums drop index albums_deleted_at');
        DB::statement('alter table albums drop index albums_name_asc_deleted_at');
    }
846092
public function down()
    {
        $controller = DB::table('admin_controllers')->select('id')->where('controller', '=', 'search')->first();
        $action = DB::table('admin_actions')->select('id')->where('name', '=', 'Search Log')->where('controller_id', '=', $controller->id)->first();


        DB::table('user_roles_actions')->where('action_id', '=', $action->id)->delete();
        DB::table('admin_actions')->where('id', '=', $action->id)->delete();
        DB::table('admin_controllers')->where('id', '=', $controller->id)->delete();
    }
1359855
public function drop() {
        
        $conn = ConnectionManager::get('default');

        $stmt1 = $conn->execute('TRUNCATE TABLE aros_acos');
        $info1 = $stmt1->errorInfo();
        if ($info1[1] != null) {
            $this->log($info1, LOG_ERR);
            if(!empty($info1)) {
                $this->Flash->error($info1);
            }
        }
        
        $stmt2 = $conn->execute('TRUNCATE TABLE acos');
        $info2 = $stmt2->errorInfo();
        if ($info2[1] != null) {
            $this->log($info2, LOG_ERR);
            if(!empty($info2)) {
                $this->Flash->error($info2);
            }
        }
        
        $stmt3 = $conn->execute('TRUNCATE TABLE aros');
        $info3 = $stmt3->errorInfo();
        if ($info3[1] != null) {
            $this->log($info3, LOG_ERR);
            if(!empty($info3)) {
                $this->Flash->error($info3);
            }
        }

        $this->Flash->success(__("ACOs and AROs have been dropped."));
        $this->redirect(["action" => "index"]);
    }
1236691
public function down()
    {
        Schema::table('block_beacons', function(Blueprint $table)
        {
            $table->dropColumn('type');
        });
        DB::table('settings')->whereIn('name', ['appid.estimote', 'key.estimote'])->delete();
    }
705921
public function down()
    {
        // Disable foreign key constraints or these DROPs will not work
        DB::statement('SET FOREIGN_KEY_CHECKS = 0');


        ///////////////////////////////////////////////////////////////////////
        ////                       Lookup Tables                           ////
        ///////////////////////////////////////////////////////////////////////

        Schema::table('kb_lookup_categories', function($table){
            $table->dropIndex('kb_lookup_categories_title_unique');
            $table->dropForeign('kb_lookup_categories_created_by_foreign');
            $table->dropForeign('kb_lookup_categories_updated_by_foreign');
            $table->dropForeign('kb_lookup_categories_locked_by_foreign');
        });
        Schema::dropIfExists('kb_lookup_categories');


        ///////////////////////////////////////////////////////////////////////
        ////                    Main Tables                                ////
        ///////////////////////////////////////////////////////////////////////

        Schema::table('kb_items', function($table){
            $table->dropForeign('kb_items_kb_category_id_foreign');
            $table->dropForeign('kb_items_created_by_foreign');
            $table->dropForeign('kb_items_updated_by_foreign');
            $table->dropForeign('kb_items_locked_by_foreign');
        });
        Schema::dropIfExists('kb_items');

        // Enable foreign key constraints
        DB::statement('SET FOREIGN_KEY_CHECKS = 1');
    }
43241
def drop_all_tables(self):
        """"""
        for table_name in self.table_names():
            self.execute_sql("DROP TABLE %s" % table_name)
        self.connection.commit()
945295
public function down()
    {
        Schema::table(config('lern.record.table'), function(Blueprint $table) {
            $table->dropColumn('user_id');
            $table->dropColumn('data');
            $table->dropColumn('url');
            $table->dropColumn('method');
        });
    }
1027970
public function dropDatabase()
    {
        $dropSchemaSql = $this->getDropDatabaseSQL();
        $conn          = $this->em->getConnection();

        foreach ($dropSchemaSql as $sql) {
            $conn->executeQuery($sql);
        }
    }
930666
public function down()
    {
        Schema::table('z_uploads', function (Blueprint $table) {
            $table->dropIndex('uploadable_index');
            $table->dropColumn('type');
            $table->index([
                'uploadable_id',
                'uploadable_type'
            ], 'uploadable_index');
        });
    }
205844
public function down()
    {
        $config = config('laravel-permission.table_names');

        Schema::drop($config['role_has_permissions']);
        Schema::drop($config['user_has_roles']);
        Schema::drop($config['user_has_permissions']);
        Schema::drop($config['roles']);
        Schema::drop($config['permissions']);
    }