diff options
author | Oliver Gasser <oliver.gasser@gmail.com> | 2013-11-12 11:27:57 +0100 |
---|---|---|
committer | Oliver Gasser <oliver.gasser@gmail.com> | 2013-11-12 11:27:57 +0100 |
commit | 95b3eb2c756983108506d19be897b8f889209eaa (patch) | |
tree | f0a89dc87cd8346903a6bdf13d6311765a9f5f6e /tests/data | |
parent | b278356eb92e50cd2d0016e78319d50d943bca41 (diff) | |
download | nextcloud-server-95b3eb2c756983108506d19be897b8f889209eaa.tar.gz nextcloud-server-95b3eb2c756983108506d19be897b8f889209eaa.zip |
Add DB tests for default numeric
Add a table with a numeric column and an empty default directive.
Diffstat (limited to 'tests/data')
-rw-r--r-- | tests/data/db_structure.xml | 22 | ||||
-rw-r--r-- | tests/data/db_structure2.xml | 22 |
2 files changed, 44 insertions, 0 deletions
diff --git a/tests/data/db_structure.xml b/tests/data/db_structure.xml index 2e83bbb78c7..5f2edbbc516 100644 --- a/tests/data/db_structure.xml +++ b/tests/data/db_structure.xml @@ -199,4 +199,26 @@ </declaration> </table> + <table> + <name>*dbprefix*decimal</name> + <declaration> + <field> + <name>id</name> + <autoincrement>1</autoincrement> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <length>4</length> + </field> + + <field> + <name>decimaltest</name> + <type>decimal</type> + <default/> + <notnull>true</notnull> + <length>15</length> + </field> + </declaration> + </table> + </database> diff --git a/tests/data/db_structure2.xml b/tests/data/db_structure2.xml index bbfb24985cb..6cd071451df 100644 --- a/tests/data/db_structure2.xml +++ b/tests/data/db_structure2.xml @@ -96,4 +96,26 @@ </declaration> </table> + <table> + <name>*dbprefix*decimal</name> + <declaration> + <field> + <name>id</name> + <autoincrement>1</autoincrement> + <type>integer</type> + <default>0</default> + <notnull>true</notnull> + <length>4</length> + </field> + + <field> + <name>decimaltest</name> + <type>decimal</type> + <default/> + <notnull>true</notnull> + <length>15</length> + </field> + </declaration> + </table> + </database> |