mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/12561] Added tests for "after last", "after missing" and "empty"
Also removed tabs PHPBB3-12561
This commit is contained in:
@@ -13,7 +13,7 @@ class phpbb_dbal_migration_dummy_order extends \phpbb\db\migration\migration
|
||||
{
|
||||
return array(
|
||||
'add_tables' => array(
|
||||
$this->table_prefix . 'column_order_test' => array(
|
||||
$this->table_prefix . 'column_order_test1' => array(
|
||||
'COLUMNS' => array(
|
||||
'foobar1' => array('BOOL', 0),
|
||||
'foobar3' => array('BOOL', 0),
|
||||
@@ -22,10 +22,55 @@ class phpbb_dbal_migration_dummy_order extends \phpbb\db\migration\migration
|
||||
),
|
||||
),
|
||||
'add_columns' => array(
|
||||
$this->table_prefix . 'column_order_test' => array(
|
||||
$this->table_prefix . 'column_order_test1' => array(
|
||||
'foobar2' => array('BOOL', 0, 'after' => 'foobar1'),
|
||||
),
|
||||
),
|
||||
|
||||
'add_tables' => array(
|
||||
$this->table_prefix . 'column_order_test2' => array(
|
||||
'COLUMNS' => array(
|
||||
'foobar1' => array('BOOL', 0),
|
||||
'foobar3' => array('BOOL', 0),
|
||||
),
|
||||
'PRIMARY_KEY' => array('foobar1'),
|
||||
),
|
||||
),
|
||||
'add_columns' => array(
|
||||
$this->table_prefix . 'column_order_test2' => array(
|
||||
'foobar4' => array('BOOL', 0, 'after' => 'foobar3'),
|
||||
),
|
||||
),
|
||||
|
||||
'add_tables' => array(
|
||||
$this->table_prefix . 'column_order_test3' => array(
|
||||
'COLUMNS' => array(
|
||||
'foobar1' => array('BOOL', 0),
|
||||
'foobar3' => array('BOOL', 0),
|
||||
),
|
||||
'PRIMARY_KEY' => array('foobar1'),
|
||||
),
|
||||
),
|
||||
'add_columns' => array(
|
||||
$this->table_prefix . 'column_order_test3' => array(
|
||||
'foobar5' => array('BOOL', 0, 'after' => 'non-existing'),
|
||||
),
|
||||
),
|
||||
|
||||
'add_tables' => array(
|
||||
$this->table_prefix . 'column_order_test4' => array(
|
||||
'COLUMNS' => array(
|
||||
'foobar1' => array('BOOL', 0),
|
||||
'foobar3' => array('BOOL', 0),
|
||||
),
|
||||
'PRIMARY_KEY' => array('foobar1'),
|
||||
),
|
||||
),
|
||||
'add_columns' => array(
|
||||
$this->table_prefix . 'column_order_test4' => array(
|
||||
'foobar5' => array('BOOL', 0, 'after' => ''),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user