mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/12170] Test for 12170
PHPBB3-12170
This commit is contained in:
parent
344baf9180
commit
344fde7f06
1 changed files with 34 additions and 4 deletions
|
@ -21,7 +21,22 @@ class get_schema_steps_test extends phpbb_test_case
|
||||||
return array(
|
return array(
|
||||||
array(
|
array(
|
||||||
array(
|
array(
|
||||||
'add_tables' => array('table1', 'table2', 'table3'),
|
'add_tables' => array(
|
||||||
|
'foo' => array(
|
||||||
|
'COLUMNS' => array(
|
||||||
|
'foobar' => array('BOOL', 0),
|
||||||
|
'foobar2' => array('BOOL', 0),
|
||||||
|
),
|
||||||
|
'PRIMARY_KEY' => array('foobar'),
|
||||||
|
),
|
||||||
|
'bar' => array(
|
||||||
|
'COLUMNS' => array(
|
||||||
|
'barfoo' => array('BOOL', 0),
|
||||||
|
'barfoor2' => array('BOOL', 0),
|
||||||
|
),
|
||||||
|
'PRIMARY_KEY' => array('barfoo'),
|
||||||
|
),
|
||||||
|
),
|
||||||
'drop_tables' => array('table1', 'table2', 'table3'),
|
'drop_tables' => array('table1', 'table2', 'table3'),
|
||||||
'add_index' => array(
|
'add_index' => array(
|
||||||
'table1' => array(
|
'table1' => array(
|
||||||
|
@ -73,9 +88,24 @@ class get_schema_steps_test extends phpbb_test_case
|
||||||
array('dbtools.perform_schema_changes', array(array('drop_tables' => array('table1')))),
|
array('dbtools.perform_schema_changes', array(array('drop_tables' => array('table1')))),
|
||||||
array('dbtools.perform_schema_changes', array(array('drop_tables' => array('table2')))),
|
array('dbtools.perform_schema_changes', array(array('drop_tables' => array('table2')))),
|
||||||
array('dbtools.perform_schema_changes', array(array('drop_tables' => array('table3')))),
|
array('dbtools.perform_schema_changes', array(array('drop_tables' => array('table3')))),
|
||||||
array('dbtools.perform_schema_changes', array(array('add_tables' => array('table1')))),
|
array('dbtools.perform_schema_changes', array(array('add_tables' => array(
|
||||||
array('dbtools.perform_schema_changes', array(array('add_tables' => array('table2')))),
|
'foo' => array(
|
||||||
array('dbtools.perform_schema_changes', array(array('add_tables' => array('table3')))),
|
'COLUMNS' => array(
|
||||||
|
'foobar' => array('BOOL', 0),
|
||||||
|
'foobar2' => array('BOOL', 0),
|
||||||
|
),
|
||||||
|
'PRIMARY_KEY' => array('foobar'),
|
||||||
|
),
|
||||||
|
)))),
|
||||||
|
array('dbtools.perform_schema_changes', array(array('add_tables' => array(
|
||||||
|
'bar' => array(
|
||||||
|
'COLUMNS' => array(
|
||||||
|
'barfoo' => array('BOOL', 0),
|
||||||
|
'barfoor2' => array('BOOL', 0),
|
||||||
|
),
|
||||||
|
'PRIMARY_KEY' => array('barfoo'),
|
||||||
|
),
|
||||||
|
)))),
|
||||||
array('dbtools.perform_schema_changes', array(array('change_columns' => array(
|
array('dbtools.perform_schema_changes', array(array('change_columns' => array(
|
||||||
'table1' => array(
|
'table1' => array(
|
||||||
'column1' => array('foo'),
|
'column1' => array('foo'),
|
||||||
|
|
Loading…
Add table
Reference in a new issue