diff options
author | Bart Visscher <bartv@thisnet.nl> | 2013-11-15 04:19:33 -0800 |
---|---|---|
committer | Bart Visscher <bartv@thisnet.nl> | 2013-11-15 04:19:33 -0800 |
commit | 630e46f60a7ac43815d14dd3d224de8ae3038465 (patch) | |
tree | 166c1e41ac2ea234ffece0ca431f9bce9e35979a /tests | |
parent | 16dce5191751e0e6b394fc5cc58690a77dc82870 (diff) | |
parent | 53f17a71d1eedc5a520874b40b51890fa5559d4d (diff) | |
download | nextcloud-server-630e46f60a7ac43815d14dd3d224de8ae3038465.tar.gz nextcloud-server-630e46f60a7ac43815d14dd3d224de8ae3038465.zip |
Merge pull request #5789 from ogasser/db_fix_default_for_numeric
DB: Set correct default value for numeric types
Diffstat (limited to 'tests')
-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> |