diff options
| author | PayBas <contact@paybas.com> | 2014-05-23 22:24:57 +0200 |
|---|---|---|
| committer | PayBas <contact@paybas.com> | 2014-05-24 14:37:08 +0200 |
| commit | 05839f85994c1281936d2dd64215c068e55b6d54 (patch) | |
| tree | 7b064c60d89add2b23593d91a851e3e3237ccac9 /tests/dbal/migration | |
| parent | 9ddf02243e37adb27984ef34e208943a413266b8 (diff) | |
| download | forums-05839f85994c1281936d2dd64215c068e55b6d54.tar forums-05839f85994c1281936d2dd64215c068e55b6d54.tar.gz forums-05839f85994c1281936d2dd64215c068e55b6d54.tar.bz2 forums-05839f85994c1281936d2dd64215c068e55b6d54.tar.xz forums-05839f85994c1281936d2dd64215c068e55b6d54.zip | |
[ticket/12561] Added test for "after"
PHPBB3-12561
Diffstat (limited to 'tests/dbal/migration')
| -rw-r--r-- | tests/dbal/migration/dummy_order.php | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/dbal/migration/dummy_order.php b/tests/dbal/migration/dummy_order.php new file mode 100644 index 0000000000..011ac7c1e9 --- /dev/null +++ b/tests/dbal/migration/dummy_order.php @@ -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'), + ), + ), + ); + } +} |
