]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add database table for backgroundjob
authorRobin Appelman <icewind@owncloud.com>
Sat, 20 Apr 2013 22:04:58 +0000 (00:04 +0200)
committerRobin Appelman <icewind@owncloud.com>
Sat, 20 Apr 2013 22:04:58 +0000 (00:04 +0200)
db_structure.xml
lib/util.php

index dce90697b1c5952bd6ac546aabde6d08700fed47..3372be9f69fc2dd3ff5ef7985d6503e2c4bc8e00 100644 (file)
 
        <table>
 
-               <name>*dbprefix*queuedtasks</name>
+               <name>*dbprefix*jobs</name>
 
                <declaration>
 
                        </field>
 
                        <field>
-                               <name>app</name>
+                               <name>class</name>
                                <type>text</type>
                                <default></default>
                                <notnull>true</notnull>
-                               <length>255</length>
+                               <length>256</length>
                        </field>
 
                        <field>
-                               <name>klass</name>
+                               <name>argument</name>
                                <type>text</type>
                                <default></default>
                                <notnull>true</notnull>
-                               <length>255</length>
+                               <length>256</length>
                        </field>
 
                        <field>
-                               <name>method</name>
-                               <type>text</type>
+                               <name>last_run</name>
+                               <type>timestamp</type>
                                <default></default>
-                               <notnull>true</notnull>
-                               <length>255</length>
+                               <notnull>false</notnull>
                        </field>
 
-                       <field>
-                               <name>parameters</name>
-                               <type>text</type>
-                               <notnull>true</notnull>
-                               <length>255</length>
-                       </field>
+                       <index>
+                               <name>job_class_index</name>
+                               <field>
+                                       <name>class</name>
+                                       <sorting>ascending</sorting>
+                               </field>
+                       </index>
 
                </declaration>
 
index 38453c1ce9242ddb34b5b369ae5e0ecf44f5294a..b3fab5041f2263f5d2954501b3a7d539316dac55 100755 (executable)
@@ -75,7 +75,7 @@ class OC_Util {
        public static function getVersion() {
                // hint: We only can count up. Reset minor/patchlevel when
                // updating major/minor version number.
-               return array(5, 80, 02);
+               return array(5, 80, 03);
        }
 
        /**