mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 00:07:44 +02:00
[ticket/12561] Reworked tests by nickvergessen
PHPBB3-12561
This commit is contained in:
@@ -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' => ''),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
22
tests/dbal/migration/dummy_order_0.php
Normal file
22
tests/dbal/migration/dummy_order_0.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package testing
|
||||
* @copyright (c) 2014 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
class phpbb_dbal_migration_dummy_order_0 extends \phpbb\db\migration\migration
|
||||
{
|
||||
function update_schema()
|
||||
{
|
||||
return array(
|
||||
'add_columns' => array(
|
||||
$this->table_prefix . 'column_order_test1' => array(
|
||||
'foobar2' => array('BOOL', 0, 'after' => 'foobar1'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
22
tests/dbal/migration/dummy_order_1.php
Normal file
22
tests/dbal/migration/dummy_order_1.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package testing
|
||||
* @copyright (c) 2014 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
class phpbb_dbal_migration_dummy_order_1 extends \phpbb\db\migration\migration
|
||||
{
|
||||
function update_schema()
|
||||
{
|
||||
return array(
|
||||
'add_columns' => array(
|
||||
$this->table_prefix . 'column_order_test1' => array(
|
||||
'foobar4' => array('BOOL', 0, 'after' => 'foobar3'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
22
tests/dbal/migration/dummy_order_2.php
Normal file
22
tests/dbal/migration/dummy_order_2.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package testing
|
||||
* @copyright (c) 2014 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
class phpbb_dbal_migration_dummy_order_2 extends \phpbb\db\migration\migration
|
||||
{
|
||||
function update_schema()
|
||||
{
|
||||
return array(
|
||||
'add_columns' => array(
|
||||
$this->table_prefix . 'column_order_test1' => array(
|
||||
'foobar5' => array('BOOL', 0, 'after' => 'non-existing'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
22
tests/dbal/migration/dummy_order_3.php
Normal file
22
tests/dbal/migration/dummy_order_3.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package testing
|
||||
* @copyright (c) 2014 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
class phpbb_dbal_migration_dummy_order_3 extends \phpbb\db\migration\migration
|
||||
{
|
||||
function update_schema()
|
||||
{
|
||||
return array(
|
||||
'add_columns' => array(
|
||||
$this->table_prefix . 'column_order_test1' => array(
|
||||
'foobar6' => array('BOOL', 0, 'after' => ''),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
22
tests/dbal/migration/dummy_order_4.php
Normal file
22
tests/dbal/migration/dummy_order_4.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package testing
|
||||
* @copyright (c) 2014 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
class phpbb_dbal_migration_dummy_order_4 extends \phpbb\db\migration\migration
|
||||
{
|
||||
function update_schema()
|
||||
{
|
||||
return array(
|
||||
'add_columns' => array(
|
||||
$this->table_prefix . 'column_order_test1' => array(
|
||||
'foobar7' => array('BOOL', 0),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
23
tests/dbal/migration/dummy_order_5.php
Normal file
23
tests/dbal/migration/dummy_order_5.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package testing
|
||||
* @copyright (c) 2014 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
class phpbb_dbal_migration_dummy_order_5 extends \phpbb\db\migration\migration
|
||||
{
|
||||
function update_schema()
|
||||
{
|
||||
return array(
|
||||
'add_columns' => array(
|
||||
$this->table_prefix . 'column_order_test1' => array(
|
||||
'foobar8' => array('BOOL', 0, 'after' => 'foobar3'),
|
||||
'foobar9' => array('BOOL', 0, 'after' => 'foobar3'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user