[Pkg-owncloud-commits] [owncloud] 10/111: Add DB tests for default numeric
David Prévot
taffit at moszumanska.debian.org
Wed Nov 20 21:38:35 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit 95b3eb2c756983108506d19be897b8f889209eaa
Author: Oliver Gasser <oliver.gasser at gmail.com>
Date: Tue Nov 12 11:27:57 2013 +0100
Add DB tests for default numeric
Add a table with a numeric column and an empty default directive.
---
tests/data/db_structure.xml | 22 ++++++++++++++++++++++
tests/data/db_structure2.xml | 22 ++++++++++++++++++++++
2 files changed, 44 insertions(+)
diff --git a/tests/data/db_structure.xml b/tests/data/db_structure.xml
index 2e83bbb..5f2edbb 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 bbfb249..6cd0714 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>
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list