1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 22:10:45 +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:
Marc Alexander
2014-03-14 23:35:07 +01:00
parent 5866f08919
commit d83d819827
7 changed files with 36 additions and 35 deletions

View File

@@ -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',
),
),
);