mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/12561] Added test for "after"
PHPBB3-12561
This commit is contained in:
31
tests/dbal/migration/dummy_order.php
Normal file
31
tests/dbal/migration/dummy_order.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?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 extends \phpbb\db\migration\migration
|
||||
{
|
||||
function update_schema()
|
||||
{
|
||||
return array(
|
||||
'add_tables' => array(
|
||||
$this->table_prefix . 'column_order_test' => array(
|
||||
'COLUMNS' => array(
|
||||
'foobar1' => array('BOOL', 0),
|
||||
'foobar3' => array('BOOL', 0),
|
||||
),
|
||||
'PRIMARY_KEY' => array('foobar1'),
|
||||
),
|
||||
),
|
||||
'add_columns' => array(
|
||||
$this->table_prefix . 'column_order_test' => array(
|
||||
'foobar2' => array('BOOL', 0, 'after' => 'foobar1'),
|
||||
),
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user