mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/12643] Tests dropping similarly named columns
PHPBB3-12643
This commit is contained in:
parent
2dc389c936
commit
e6a8df7f7e
1 changed files with 11 additions and 0 deletions
|
@ -248,6 +248,17 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case
|
||||||
$this->assertFalse($this->tools->sql_column_exists('prefix_table_name', 'c_int_size'));
|
$this->assertFalse($this->tools->sql_column_exists('prefix_table_name', 'c_int_size'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function test_column_remove_similar_name()
|
||||||
|
{
|
||||||
|
$this->assertTrue($this->tools->sql_column_exists('prefix_table_name', 'c_vchar'));
|
||||||
|
$this->assertTrue($this->tools->sql_column_exists('prefix_table_name', 'c_vchar_size'));
|
||||||
|
|
||||||
|
$this->assertTrue($this->tools->sql_column_remove('prefix_table_name', 'c_vchar'));
|
||||||
|
|
||||||
|
$this->assertFalse($this->tools->sql_column_exists('prefix_table_name', 'c_vchar'));
|
||||||
|
$this->assertTrue($this->tools->sql_column_exists('prefix_table_name', 'c_vchar_size'));
|
||||||
|
}
|
||||||
|
|
||||||
public function test_column_remove_with_index()
|
public function test_column_remove_with_index()
|
||||||
{
|
{
|
||||||
// Create column
|
// Create column
|
||||||
|
|
Loading…
Add table
Reference in a new issue