Merge remote-tracking branch 'upstream/4.4' into 4.4-master-2014-08-04-22-25-32
[civicrm-core.git] / xml / schema / Core / Job.xml
index 004b759d7953e811c7e1a689e7125f750e315c23..a14a271d8d86c483e123acdd2cb75e93d706be69 100644 (file)
       <name>domain_id</name>
       <type>int unsigned</type>
       <required>true</required>
+      <pseudoconstant>
+          <table>civicrm_domain</table>
+          <keyColumn>id</keyColumn>
+          <labelColumn>name</labelColumn>
+      </pseudoconstant>
       <comment>Which Domain is this scheduled job for</comment>
       <add>4.1</add>
   </field>
   </foreignKey>
   <field>
        <name>run_frequency</name>
-       <type>enum</type>
-       <values>Hourly, Daily, Always</values>
+       <type>varchar</type>
+       <length>8</length>
        <default>"Daily"</default>
        <comment>Scheduled job run frequency.</comment>
+       <pseudoconstant>
+         <callback>CRM_Core_SelectValues::getJobFrequency</callback>
+       </pseudoconstant>
        <add>4.1</add>
+       <html>
+         <type>Select</type>
+       </html>
   </field>
   <field>
        <name>last_run</name>
        <comment>List of parameters to the command.</comment>
        <html>
          <type>TextArea</type>
+         <rows>4</rows>
+         <cols>60</cols>
        </html>
-
-       <rows>4</rows>
-       <cols>60</cols>
        <add>4.1</add>
   </field>
   <field>