1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[feature/migrations] Return schema changes in database update style array

Returning the set of schema changes allows potentially aggregating to generate
the overall install schema automatically from a set of migrations

PHPBB3-9737
This commit is contained in:
Nils Adermann
2012-10-25 12:26:44 -07:00
committed by Nathan Guse
parent d304b6449d
commit 8645321f40
3 changed files with 16 additions and 4 deletions

View File

@@ -16,7 +16,13 @@ class phpbb_dbal_migration_dummy extends phpbb_db_migration
function update_schema()
{
$this->db_column_add('phpbb_config', 'extra_column', array('UINT', 0));
return array(
'add_columns' => array(
'phpbb_config' => array(
'extra_column' => array('UINT', 0),
),
),
);
}
function update_data()