aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2013-04-24 09:59:41 -0700
committerNils Adermann <naderman@naderman.de>2013-04-24 09:59:41 -0700
commitaaf109e07d6847fd45c6c3ce0a72399aa21ff5cb (patch)
tree1e02abab1a95b1701f4881bcaa504bfac167c14f /phpBB
parent81daf21dc08a18de4a9e541b067724f37ba4d481 (diff)
parent5a4438d486bc9a8738765fb671e584e269353c06 (diff)
downloadforums-aaf109e07d6847fd45c6c3ce0a72399aa21ff5cb.tar
forums-aaf109e07d6847fd45c6c3ce0a72399aa21ff5cb.tar.gz
forums-aaf109e07d6847fd45c6c3ce0a72399aa21ff5cb.tar.bz2
forums-aaf109e07d6847fd45c6c3ce0a72399aa21ff5cb.tar.xz
forums-aaf109e07d6847fd45c6c3ce0a72399aa21ff5cb.zip
Merge pull request #1326 from dhruvgoel92/ticket/11485
[ticket/11485] add columns to update_schema before adding data
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/includes/db/migration/data/310/style_update_p1.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/phpBB/includes/db/migration/data/310/style_update_p1.php b/phpBB/includes/db/migration/data/310/style_update_p1.php
index e324ce7f24..d43537559d 100644
--- a/phpBB/includes/db/migration/data/310/style_update_p1.php
+++ b/phpBB/includes/db/migration/data/310/style_update_p1.php
@@ -19,6 +19,34 @@ class phpbb_db_migration_data_310_style_update_p1 extends phpbb_db_migration
return array('phpbb_db_migration_data_30x_3_0_11');
}
+ public function update_schema()
+ {
+ return array(
+ 'add_columns' => array(
+ $this->table_prefix . 'styles' => array(
+ 'style_path' => array('VCHAR:100', ''),
+ 'bbcode_bitfield' => array('VCHAR:255', 'kNg='),
+ 'style_parent_id' => array('UINT', 0),
+ 'style_parent_tree' => array('TEXT', ''),
+ ),
+ ),
+ );
+ }
+
+ public function revert_schema()
+ {
+ return array(
+ 'drop_columns' => array(
+ $this->table_prefix . 'styles' => array(
+ 'style_path',
+ 'bbcode_bitfield',
+ 'style_parent_id',
+ 'style_parent_tree',
+ ),
+ ),
+ );
+ }
+
public function update_data()
{
return array(