diff options
| author | Vjacheslav Trushkin <arty@phpbb.com> | 2011-09-03 18:55:30 +0300 |
|---|---|---|
| committer | Vjacheslav Trushkin <arty@phpbb.com> | 2011-09-03 18:55:30 +0300 |
| commit | 33adfd633b6fa92bbc6e0b4fd303e942d2923b6e (patch) | |
| tree | d0bb189f9c05c2746b0b904a4c20e79e4368e94a /phpBB/install/database_update.php | |
| parent | 929c13a52bb16ca61acbc75f4a708a9b4cd501c0 (diff) | |
| download | forums-33adfd633b6fa92bbc6e0b4fd303e942d2923b6e.tar forums-33adfd633b6fa92bbc6e0b4fd303e942d2923b6e.tar.gz forums-33adfd633b6fa92bbc6e0b4fd303e942d2923b6e.tar.bz2 forums-33adfd633b6fa92bbc6e0b4fd303e942d2923b6e.tar.xz forums-33adfd633b6fa92bbc6e0b4fd303e942d2923b6e.zip | |
[feature/remove-imagesets] Changing database structure
Removing imagesets. Changing database structure
PHPBB3-10336
Diffstat (limited to 'phpBB/install/database_update.php')
| -rw-r--r-- | phpBB/install/database_update.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/install/database_update.php b/phpBB/install/database_update.php index b69d44d7be..7f542974d9 100644 --- a/phpBB/install/database_update.php +++ b/phpBB/install/database_update.php @@ -1061,6 +1061,15 @@ function database_update_info() 'group_legend' => array('UINT', 0), ), ), + 'drop_columns' => array( + STYLES_TABLE => array( + 'imageset_id', + ), + ), + 'drop_tables' => array( + STYLES_IMAGESET_TABLE, + STYLES_IMAGESET_DATA_TABLE, + ), ), ); } @@ -2128,6 +2137,10 @@ function change_database_data(&$no_updates, $version) ); _add_modules($modules_to_install); + + $sql = 'DELETE FROM ' . MODULES_TABLE . " + WHERE module_basename = 'styles' AND module_mode = 'imageset'"; + _sql($sql, $errored, $error_ary); // Localise Global Announcements $sql = 'SELECT topic_id, topic_approved, (topic_replies + 1) AS topic_posts, topic_last_post_id, topic_last_post_subject, topic_last_post_time, topic_last_poster_id, topic_last_poster_name, topic_last_poster_colour |
