Commit 57e41beb authored by Cédric Le Ninivin's avatar Cédric Le Ninivin Committed by Cédric Le Ninivin

slapos_mysql_innodb_catalog: Add slap_date column to slapos_item table

parent 1cab8935
...@@ -15,7 +15,8 @@ VALUES ...@@ -15,7 +15,8 @@ VALUES
<dtml-in prefix="loop" expr="_.range(_.len(uid))"> <dtml-in prefix="loop" expr="_.range(_.len(uid))">
( (
<dtml-sqlvar expr="uid[loop_item]" type="int">, <dtml-sqlvar expr="uid[loop_item]" type="int">,
<dtml-sqlvar expr="getSlapState[loop_item]" type="string" optional> <dtml-sqlvar expr="getSlapState[loop_item]" type="string" optional>,
<dtml-sqlvar expr="getSlapTimestamp[loop_item]" type="datetime" optional>
) )
<dtml-if sequence-end><dtml-else>,</dtml-if> <dtml-if sequence-end><dtml-else>,</dtml-if>
</dtml-in> </dtml-in>
......
...@@ -13,7 +13,8 @@ ...@@ -13,7 +13,8 @@
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>uid\n <value> <string>uid\n
getSlapState</string> </value> getSlapState\n
getSlapTimestamp</string> </value>
</item> </item>
<item> <item>
<key> <string>cache_time_</string> </key> <key> <string>cache_time_</string> </key>
...@@ -75,7 +76,7 @@ getSlapState</string> </value> ...@@ -75,7 +76,7 @@ getSlapState</string> </value>
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string>z_catalog_slapos_item_list</string> </value>
</item> </item>
<item> <item>
<key> <string>type</string> </key> <key> <string>type</string> </key>
......
CREATE TABLE `slapos_item` ( CREATE TABLE `slapos_item` (
`uid` BIGINT UNSIGNED NOT NULL, `uid` BIGINT UNSIGNED NOT NULL,
`slap_state` varchar(255), `slap_state` varchar(255),
`slap_date` datetime,
PRIMARY KEY (`uid`, `slap_state`) PRIMARY KEY (`uid`, `slap_state`)
) ENGINE=InnoDB; ) ENGINE=InnoDB;
...@@ -14,9 +14,7 @@ ...@@ -14,9 +14,7 @@
</item> </item>
<item> <item>
<key> <string>allow_simple_one_argument_traversal</string> </key> <key> <string>allow_simple_one_argument_traversal</string> </key>
<value> <value> <int>0</int> </value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
...@@ -28,11 +26,15 @@ ...@@ -28,11 +26,15 @@
</item> </item>
<item> <item>
<key> <string>class_file_</string> </key> <key> <string>class_file_</string> </key>
<value> <string></string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>class_name_</string> </key> <key> <string>class_name_</string> </key>
<value> <string></string> </value> <value>
<none/>
</value>
</item> </item>
<item> <item>
<key> <string>connection_hook</string> </key> <key> <string>connection_hook</string> </key>
...@@ -62,7 +64,7 @@ ...@@ -62,7 +64,7 @@
</item> </item>
<item> <item>
<key> <string>title</string> </key> <key> <string>title</string> </key>
<value> <string></string> </value> <value> <string>z_create_slapos_item</string> </value>
</item> </item>
</dictionary> </dictionary>
</pickle> </pickle>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment