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
<dtml-in prefix="loop" expr="_.range(_.len(uid))">
(
<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-in>
......
......@@ -13,7 +13,8 @@
<item>
<key> <string>arguments_src</string> </key>
<value> <string>uid\n
getSlapState</string> </value>
getSlapState\n
getSlapTimestamp</string> </value>
</item>
<item>
<key> <string>cache_time_</string> </key>
......@@ -75,7 +76,7 @@ getSlapState</string> </value>
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
<value> <string>z_catalog_slapos_item_list</string> </value>
</item>
<item>
<key> <string>type</string> </key>
......
CREATE TABLE `slapos_item` (
`uid` BIGINT UNSIGNED NOT NULL,
`slap_state` varchar(255),
`slap_date` datetime,
PRIMARY KEY (`uid`, `slap_state`)
) ENGINE=InnoDB;
......@@ -14,9 +14,7 @@
</item>
<item>
<key> <string>allow_simple_one_argument_traversal</string> </key>
<value>
<none/>
</value>
<value> <int>0</int> </value>
</item>
<item>
<key> <string>arguments_src</string> </key>
......@@ -28,11 +26,15 @@
</item>
<item>
<key> <string>class_file_</string> </key>
<value> <string></string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>class_name_</string> </key>
<value> <string></string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>connection_hook</string> </key>
......@@ -62,7 +64,7 @@
</item>
<item>
<key> <string>title</string> </key>
<value> <string></string> </value>
<value> <string>z_create_slapos_item</string> </value>
</item>
</dictionary>
</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