diff options
author | Marc Alexander <admin@m-a-styles.de> | 2014-02-07 20:49:13 +0100 |
---|---|---|
committer | Marc Alexander <admin@m-a-styles.de> | 2014-02-07 21:13:50 +0100 |
commit | e8f8dcf0eaf53c4d7e175a6b90ae181794718184 (patch) | |
tree | 7c85bfa15ce9f68bbe1f6355eae66bab17e09f76 /tests/dbal/migration | |
parent | 344baf91809bbfd5a224191e13472b94f77b421c (diff) | |
download | forums-e8f8dcf0eaf53c4d7e175a6b90ae181794718184.tar forums-e8f8dcf0eaf53c4d7e175a6b90ae181794718184.tar.gz forums-e8f8dcf0eaf53c4d7e175a6b90ae181794718184.tar.bz2 forums-e8f8dcf0eaf53c4d7e175a6b90ae181794718184.tar.xz forums-e8f8dcf0eaf53c4d7e175a6b90ae181794718184.zip |
[ticket/12170] Assign schema keys in migration helper with data_depth 1
The migration helper currently drops any keys with schema changes that have
the data_depth 1. This change will correctly assign the keys to the steps
array without dropping the keys that might contain important info like the
actual table that should be created.
PHPBB3-12170
Diffstat (limited to 'tests/dbal/migration')
-rw-r--r-- | tests/dbal/migration/schema.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/dbal/migration/schema.php b/tests/dbal/migration/schema.php index 46cf66eaec..98407eb1bd 100644 --- a/tests/dbal/migration/schema.php +++ b/tests/dbal/migration/schema.php @@ -17,6 +17,14 @@ class phpbb_dbal_migration_schema extends \phpbb\db\migration\migration 'test_column1' => array('BOOL', 1), ), ), + 'add_tables' => array( + $this->table_prefix . 'foobar' => array( + 'COLUMNS' => array( + 'module_id' => array('UINT:3', NULL, 'auto_increment'), + ), + 'PRIMARY_KEY' => 'module_id', + ), + ), ); } @@ -28,6 +36,9 @@ class phpbb_dbal_migration_schema extends \phpbb\db\migration\migration 'test_column1', ), ), + 'drop_tables' => array( + $this->table_prefix . 'foobar', + ), ); } } |