mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 05:50:42 +02:00
[ticket/12150] Use shorter column names for prune settings
All columns were renamed from having prune_shadow_topics as namebase to just prune_shadow. A missing column was also added to the migration file's remove_schema() method. PHPBB3-12150
This commit is contained in:
@@ -21,10 +21,10 @@ class prune_shadow_topics extends \phpbb\db\migration\migration
|
||||
return array(
|
||||
'add_columns' => array(
|
||||
$this->table_prefix . 'forums' => array(
|
||||
'enable_shadow_topic_prune' => array('BOOL', 0, 'after' => 'prune_freq'),
|
||||
'prune_shadow_topic_days' => array('UINT', 7, 'after' => 'enable_shadow_topic_prune'),
|
||||
'prune_shadow_topic_freq' => array('UINT', 1, 'after' => 'prune_shadow_topic_freq'),
|
||||
'prune_shadow_topic_next' => array('INT:11', 0, 'after' => 'prune_shadow_topic_freq'),
|
||||
'enable_shadow_prune' => array('BOOL', 0, 'after' => 'prune_freq'),
|
||||
'prune_shadow_days' => array('UINT', 7, 'after' => 'enable_shadow_prune'),
|
||||
'prune_shadow_freq' => array('UINT', 1, 'after' => 'prune_shadow_freq'),
|
||||
'prune_shadow_next' => array('INT:11', 0, 'after' => 'prune_shadow_freq'),
|
||||
),
|
||||
),
|
||||
);
|
||||
@@ -35,9 +35,10 @@ class prune_shadow_topics extends \phpbb\db\migration\migration
|
||||
return array(
|
||||
'drop_columns' => array(
|
||||
$this->table_prefix . 'forums' => array(
|
||||
'enable_shadow_topic_prune',
|
||||
'prune_shadow_topic_days',
|
||||
'prune_shadow_topic_freq',
|
||||
'enable_shadow_prune',
|
||||
'prune_shadow_days',
|
||||
'prune_shadow_freq',
|
||||
'prune_shadow_next',
|
||||
),
|
||||
),
|
||||
);
|
||||
|
Reference in New Issue
Block a user