diff options
author | Andreas Fischer <bantu@phpbb.com> | 2011-07-05 00:27:04 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2011-07-05 00:27:04 +0200 |
commit | f5d86d06040de198d15fe9596c63186da02347d8 (patch) | |
tree | 23616fb831fef47ea8665aef55cf2594eb59b3fd /tests/dbal/db_tools_test.php | |
parent | ffa6f3448fdfe6d076c894231ebbd59e3b51e2ba (diff) | |
parent | cb7604dcd83bf3a4ddf6ace1282974eaf475c8d8 (diff) | |
download | forums-f5d86d06040de198d15fe9596c63186da02347d8.tar forums-f5d86d06040de198d15fe9596c63186da02347d8.tar.gz forums-f5d86d06040de198d15fe9596c63186da02347d8.tar.bz2 forums-f5d86d06040de198d15fe9596c63186da02347d8.tar.xz forums-f5d86d06040de198d15fe9596c63186da02347d8.zip |
Merge remote-tracking branch 'naderman/ticket/10247' into prep-release-3.0.9
* naderman/ticket/10247:
[ticket/10247] Removing attempt_id column from the 3.0.8 to 3.0.9-RC1 updater.
[ticket/10247] Add a db_tools test for the removal of a primary key column.
[ticket/10247] Add empty data section to database update for RC4
[ticket/10247] Remove unecessary attempt_id primary key column
Diffstat (limited to 'tests/dbal/db_tools_test.php')
-rw-r--r-- | tests/dbal/db_tools_test.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/dbal/db_tools_test.php b/tests/dbal/db_tools_test.php index eb2af4c4cc..ddea500f83 100644 --- a/tests/dbal/db_tools_test.php +++ b/tests/dbal/db_tools_test.php @@ -242,6 +242,15 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case public function test_column_remove() { + $this->assertTrue($this->tools->sql_column_exists('prefix_table_name', 'c_int_size')); + + $this->assertTrue($this->tools->sql_column_remove('prefix_table_name', 'c_int_size')); + + $this->assertFalse($this->tools->sql_column_exists('prefix_table_name', 'c_int_size')); + } + + public function test_column_remove_primary() + { $this->assertTrue($this->tools->sql_column_exists('prefix_table_name', 'c_id')); $this->assertTrue($this->tools->sql_column_remove('prefix_table_name', 'c_id')); @@ -264,5 +273,4 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case $this->tools->sql_table_drop('prefix_test_table'); } - } |