mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 14:00:31 +02:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10346] Add drop_tables to perform_schema_changes and add tests
This commit is contained in:
@@ -649,6 +649,23 @@ class phpbb_db_tools
|
||||
$sqlite = true;
|
||||
}
|
||||
|
||||
// Drop tables?
|
||||
if (!empty($schema_changes['drop_tables']))
|
||||
{
|
||||
foreach ($schema_changes['drop_tables'] as $table)
|
||||
{
|
||||
// only drop table if it exists
|
||||
if ($this->sql_table_exists($table))
|
||||
{
|
||||
$result = $this->sql_table_drop($table);
|
||||
if ($this->return_statements)
|
||||
{
|
||||
$statements = array_merge($statements, $result);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Add tables?
|
||||
if (!empty($schema_changes['add_tables']))
|
||||
{
|
||||
|
Reference in New Issue
Block a user