diff options
| author | Nils Adermann <naderman@naderman.de> | 2012-11-09 17:10:48 +0100 |
|---|---|---|
| committer | Nathan Guse <nathaniel.guse@gmail.com> | 2013-01-09 16:42:43 -0600 |
| commit | b1f9ca2f6541924c75a30c68dd8a4bc8db62205d (patch) | |
| tree | ab8e43f74475925e20302d3e07e23164a34f5cbe /phpBB/includes/db/migration/v302rc2.php | |
| parent | c802f2a66c577781036b7bfd6d6689159028c3a6 (diff) | |
| download | forums-b1f9ca2f6541924c75a30c68dd8a4bc8db62205d.tar forums-b1f9ca2f6541924c75a30c68dd8a4bc8db62205d.tar.gz forums-b1f9ca2f6541924c75a30c68dd8a4bc8db62205d.tar.bz2 forums-b1f9ca2f6541924c75a30c68dd8a4bc8db62205d.tar.xz forums-b1f9ca2f6541924c75a30c68dd8a4bc8db62205d.zip | |
[feature/migrations] Moved database_update info to individual migration classes
Diffstat (limited to 'phpBB/includes/db/migration/v302rc2.php')
| -rw-r--r-- | phpBB/includes/db/migration/v302rc2.php | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/phpBB/includes/db/migration/v302rc2.php b/phpBB/includes/db/migration/v302rc2.php new file mode 100644 index 0000000000..21aa5ca728 --- /dev/null +++ b/phpBB/includes/db/migration/v302rc2.php @@ -0,0 +1,52 @@ +<?php +/** +* +* @package migration +* @copyright (c) 2012 phpBB Group +* @license http://opensource.org/licenses/gpl-license.php GNU Public License v2 +* +*/ + +class phpbb_db_migration_v302rc1 extends phpbb_db_migration +{ + function depends_on() + { + return array('phpbb_db_migration_v302rc1'); + } + + function update_schema() + { + return array( + 'change_columns' => array( + $this->table_prefix . 'drafts' => array( + 'draft_subject' => array('STEXT_UNI', ''), + ), + $this->table_prefix . 'forums' => array( + 'forum_last_post_subject' => array('STEXT_UNI', ''), + ), + $this->table_prefix . 'posts' => array( + 'post_subject' => array('STEXT_UNI', '', 'true_sort'), + ), + $this->table_prefix . 'privmsgs' => array( + 'message_subject' => array('STEXT_UNI', ''), + ), + $this->table_prefix . 'topics' => array( + 'topic_title' => array('STEXT_UNI', '', 'true_sort'), + 'topic_last_post_subject' => array('STEXT_UNI', ''), + ), + ), + 'drop_keys' => array( + $this->table_prefix . 'sessions' => array('session_forum_id'), + ), + 'add_index' => array( + $this->table_prefix . 'sessions' => array( + 'session_fid' => array('session_forum_id'), + ), + ), + ); + } + + function update_data() + { + } +} |
