diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2015-01-23 17:32:28 +0100 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2015-01-23 17:32:28 +0100 |
| commit | 9cdbb69f9e50f665caad54fc93f64143cb7d8fc8 (patch) | |
| tree | 93116ade2e8c37dc11d1fefa6a59510cf4f18359 /tests/dbal/db_tools_test.php | |
| parent | 40ab75478ed7427985e4d147eb6573ce8bb351fc (diff) | |
| parent | eb4594d8ee6a662f6e268a8d802c8a7110cd55c7 (diff) | |
| download | forums-9cdbb69f9e50f665caad54fc93f64143cb7d8fc8.tar forums-9cdbb69f9e50f665caad54fc93f64143cb7d8fc8.tar.gz forums-9cdbb69f9e50f665caad54fc93f64143cb7d8fc8.tar.bz2 forums-9cdbb69f9e50f665caad54fc93f64143cb7d8fc8.tar.xz forums-9cdbb69f9e50f665caad54fc93f64143cb7d8fc8.zip | |
Merge pull request #3321 from marc1706/ticket/13282
[ticket/13282] Use 0 as default for integer type columns in postgresql
Diffstat (limited to 'tests/dbal/db_tools_test.php')
| -rw-r--r-- | tests/dbal/db_tools_test.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/dbal/db_tools_test.php b/tests/dbal/db_tools_test.php index 51f9daacfb..5832b966d8 100644 --- a/tests/dbal/db_tools_test.php +++ b/tests/dbal/db_tools_test.php @@ -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')); + } } |
