mirror of
https://github.com/phpbb/phpbb.git
synced 2025-09-02 04:42:37 +02:00
[ticket/11922] Drop all keys before trying to delete columns to avoid issues
On MSSQL columns that have an index can not be dropped. PHPBB3-11922
This commit is contained in:
@@ -34,7 +34,10 @@ class softdelete_p2 extends \phpbb\db\migration\migration
|
||||
),
|
||||
'drop_keys' => array(
|
||||
$this->table_prefix . 'posts' => array('post_approved'),
|
||||
$this->table_prefix . 'topics' => array('forum_appr_last'),
|
||||
$this->table_prefix . 'topics' => array(
|
||||
'forum_appr_last',
|
||||
'topic_approved',
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
@@ -63,6 +66,7 @@ class softdelete_p2 extends \phpbb\db\migration\migration
|
||||
),
|
||||
$this->table_prefix . 'topics' => array(
|
||||
'forum_appr_last' => array('forum_id', 'topic_approved', 'topic_last_post_id'),
|
||||
'topic_approved' => array('topic_approved'),
|
||||
),
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user