mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-07 20:08:53 +00:00
[ticket/13282] Add unit test for adding integer column with default null
PHPBB3-13282
This commit is contained in:
parent
47f04d7620
commit
eb4594d8ee
1 changed files with 7 additions and 0 deletions
|
@ -415,4 +415,11 @@ class phpbb_dbal_db_tools_test extends phpbb_database_test_case
|
|||
$this->tools->sql_create_unique_index('prefix_table_name', 'i_uniq_ts_id', array('c_timestamp', 'c_id'));
|
||||
$this->assertTrue($this->tools->sql_unique_index_exists('prefix_table_name', 'i_uniq_ts_id'));
|
||||
}
|
||||
|
||||
public function test_create_int_default_null()
|
||||
{
|
||||
$this->assertFalse($this->tools->sql_column_exists('prefix_table_name', 'c_bug_13282'));
|
||||
$this->assertTrue($this->tools->sql_column_add('prefix_table_name', 'c_bug_13282', array('TINT:2')));
|
||||
$this->assertTrue($this->tools->sql_column_exists('prefix_table_name', 'c_bug_13282'));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue