Commit 4032c8e7 authored by Yoshinori Okuji's avatar Yoshinori Okuji

2009-11-06 yo

* Stop setting a bogus default to alarm_date.
* Index alarm_date as well.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30360 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 9cc5a5b2
......@@ -23,6 +23,12 @@
<key> <string>_data</string> </key>
<value>
<dictionary>
<item>
<key> <string>getAlarmDate</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>uid</string> </key>
<value>
......@@ -37,6 +43,7 @@
<value>
<list>
<string>uid</string>
<string>getAlarmDate</string>
</list>
</value>
</item>
......@@ -53,7 +60,8 @@
</item>
<item>
<key> <string>arguments_src</string> </key>
<value> <string>uid</string> </value>
<value> <string>uid\r\n
getAlarmDate</string> </value>
</item>
<item>
<key> <string>cache_time_</string> </key>
......@@ -94,11 +102,12 @@
<value> <string encoding="cdata"><![CDATA[
REPLACE INTO\n
alarm (uid)\n
alarm (uid, alarm_date)\n
VALUES\n
<dtml-in prefix="loop" expr="_.range(_.len(uid))">\n
(\n
<dtml-sqlvar expr="uid[loop_item]" type="int">\n
<dtml-sqlvar expr="uid[loop_item]" type="int">,\n
<dtml-sqlvar expr="getAlarmDate[loop_item]" type="datetime" optional>\n
)\n
<dtml-if sequence-end><dtml-else>,</dtml-if>\n
</dtml-in>\n
......@@ -143,11 +152,12 @@ VALUES\n
<value> <string encoding="cdata"><![CDATA[
REPLACE INTO\n
alarm (uid)\n
alarm (uid, alarm_date)\n
VALUES\n
<dtml-in prefix="loop" expr="_.range(_.len(uid))">\n
(\n
<dtml-sqlvar expr="uid[loop_item]" type="int">\n
<dtml-sqlvar expr="uid[loop_item]" type="int">,\n
<dtml-sqlvar expr="getAlarmDate[loop_item]" type="datetime" optional>\n
)\n
<dtml-if sequence-end><dtml-else>,</dtml-if>\n
</dtml-in>\n
......
......@@ -94,7 +94,7 @@
#\n
CREATE TABLE `alarm` (\n
`uid` BIGINT UNSIGNED NOT NULL,\n
`alarm_date` datetime default \'2006-01-01\',\n
`alarm_date` DATETIME,\n
PRIMARY KEY (`uid`)\n
) TYPE=InnoDB;\n
</string> </value>
......@@ -139,7 +139,7 @@ CREATE TABLE `alarm` (\n
#\n
CREATE TABLE `alarm` (\n
`uid` BIGINT UNSIGNED NOT NULL,\n
`alarm_date` datetime default \'2006-01-01\',\n
`alarm_date` DATETIME,\n
PRIMARY KEY (`uid`)\n
) TYPE=InnoDB;\n
</string> </value>
......
142
\ No newline at end of file
143
\ No newline at end of file
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