1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-14 20:54:13 +02:00

[ticket/12561] Reworked tests by nickvergessen

PHPBB3-12561
This commit is contained in:
PayBas
2014-05-27 00:41:11 +02:00
parent 3cabe5fd79
commit 9f37d414be
8 changed files with 205 additions and 111 deletions

View File

@@ -21,56 +21,6 @@ class phpbb_dbal_migration_dummy_order extends \phpbb\db\migration\migration
'PRIMARY_KEY' => array('foobar1'),
),
),
'add_columns' => 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' => ''),
),
),
);
}
}