[ticket/12150] Remove 'after' for columns from migrations file

PHPBB3-12150
This commit is contained in:
Marc Alexander 2014-04-03 11:07:58 +02:00
parent 1812d3ce99
commit 808c5277a9
2 changed files with 20 additions and 24 deletions

View file

@ -800,26 +800,22 @@
"UINT:20", "UINT:20",
0 0
], ],
"enable_shadow_prune": { "enable_shadow_prune": [
"0": "BOOL", "BOOL",
"1": 0, 0
"after": "prune_freq" ],
}, "prune_shadow_days": [
"prune_shadow_days": { "UINT",
"0": "UINT", 7
"1": 7, ],
"after": "enable_shadow_prune" "prune_shadow_freq": [
}, "UINT",
"prune_shadow_freq": { 1
"0": "UINT", ],
"1": 1, "prune_shadow_next": [
"after": "prune_shadow_freq" "INT:11",
}, 0
"prune_shadow_next": { ],
"0": "INT:11",
"1": 0,
"after": "prune_shadow_freq"
},
"forum_posts_approved": [ "forum_posts_approved": [
"UINT", "UINT",
0 0

View file

@ -21,10 +21,10 @@ class prune_shadow_topics extends \phpbb\db\migration\migration
return array( return array(
'add_columns' => array( 'add_columns' => array(
$this->table_prefix . 'forums' => array( $this->table_prefix . 'forums' => array(
'enable_shadow_prune' => array('BOOL', 0, 'after' => 'prune_freq'), 'enable_shadow_prune' => array('BOOL', 0),
'prune_shadow_days' => array('UINT', 7, 'after' => 'enable_shadow_prune'), 'prune_shadow_days' => array('UINT', 7),
'prune_shadow_freq' => array('UINT', 1, 'after' => 'prune_shadow_freq'), 'prune_shadow_freq' => array('UINT', 1),
'prune_shadow_next' => array('INT:11', 0, 'after' => 'prune_shadow_freq'), 'prune_shadow_next' => array('INT:11', 0),
), ),
), ),
); );