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 @@ ...@@ -23,6 +23,12 @@
<key> <string>_data</string> </key> <key> <string>_data</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>getAlarmDate</string> </key>
<value>
<dictionary/>
</value>
</item>
<item> <item>
<key> <string>uid</string> </key> <key> <string>uid</string> </key>
<value> <value>
...@@ -37,6 +43,7 @@ ...@@ -37,6 +43,7 @@
<value> <value>
<list> <list>
<string>uid</string> <string>uid</string>
<string>getAlarmDate</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -53,7 +60,8 @@ ...@@ -53,7 +60,8 @@
</item> </item>
<item> <item>
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>uid</string> </value> <value> <string>uid\r\n
getAlarmDate</string> </value>
</item> </item>
<item> <item>
<key> <string>cache_time_</string> </key> <key> <string>cache_time_</string> </key>
...@@ -94,11 +102,12 @@ ...@@ -94,11 +102,12 @@
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
REPLACE INTO\n REPLACE INTO\n
alarm (uid)\n alarm (uid, alarm_date)\n
VALUES\n VALUES\n
<dtml-in prefix="loop" expr="_.range(_.len(uid))">\n <dtml-in prefix="loop" expr="_.range(_.len(uid))">\n
(\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 )\n
<dtml-if sequence-end><dtml-else>,</dtml-if>\n <dtml-if sequence-end><dtml-else>,</dtml-if>\n
</dtml-in>\n </dtml-in>\n
...@@ -143,11 +152,12 @@ VALUES\n ...@@ -143,11 +152,12 @@ VALUES\n
<value> <string encoding="cdata"><![CDATA[ <value> <string encoding="cdata"><![CDATA[
REPLACE INTO\n REPLACE INTO\n
alarm (uid)\n alarm (uid, alarm_date)\n
VALUES\n VALUES\n
<dtml-in prefix="loop" expr="_.range(_.len(uid))">\n <dtml-in prefix="loop" expr="_.range(_.len(uid))">\n
(\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 )\n
<dtml-if sequence-end><dtml-else>,</dtml-if>\n <dtml-if sequence-end><dtml-else>,</dtml-if>\n
</dtml-in>\n </dtml-in>\n
......
...@@ -94,7 +94,7 @@ ...@@ -94,7 +94,7 @@
#\n #\n
CREATE TABLE `alarm` (\n CREATE TABLE `alarm` (\n
`uid` BIGINT UNSIGNED NOT NULL,\n `uid` BIGINT UNSIGNED NOT NULL,\n
`alarm_date` datetime default \'2006-01-01\',\n `alarm_date` DATETIME,\n
PRIMARY KEY (`uid`)\n PRIMARY KEY (`uid`)\n
) TYPE=InnoDB;\n ) TYPE=InnoDB;\n
</string> </value> </string> </value>
...@@ -139,7 +139,7 @@ CREATE TABLE `alarm` (\n ...@@ -139,7 +139,7 @@ CREATE TABLE `alarm` (\n
#\n #\n
CREATE TABLE `alarm` (\n CREATE TABLE `alarm` (\n
`uid` BIGINT UNSIGNED NOT NULL,\n `uid` BIGINT UNSIGNED NOT NULL,\n
`alarm_date` datetime default \'2006-01-01\',\n `alarm_date` DATETIME,\n
PRIMARY KEY (`uid`)\n PRIMARY KEY (`uid`)\n
) TYPE=InnoDB;\n ) TYPE=InnoDB;\n
</string> </value> </string> </value>
......
142 143
\ No newline at end of file \ 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