Commit 8e11ef7e authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

2009-04-15 Kazuhiko

* add effective_date and expiration_date in versioning table.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@26452 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bb19c7bc
...@@ -23,6 +23,18 @@ ...@@ -23,6 +23,18 @@
<key> <string>_data</string> </key> <key> <string>_data</string> </key>
<value> <value>
<dictionary> <dictionary>
<item>
<key> <string>getEffectiveDate</string> </key>
<value>
<dictionary/>
</value>
</item>
<item>
<key> <string>getExpirationDate</string> </key>
<value>
<dictionary/>
</value>
</item>
<item> <item>
<key> <string>getLanguage</string> </key> <key> <string>getLanguage</string> </key>
<value> <value>
...@@ -58,6 +70,8 @@ ...@@ -58,6 +70,8 @@
<string>getLanguage</string> <string>getLanguage</string>
<string>getVersion</string> <string>getVersion</string>
<string>getRevision</string> <string>getRevision</string>
<string>getEffectiveDate</string>
<string>getExpirationDate</string>
</list> </list>
</value> </value>
</item> </item>
...@@ -83,7 +97,9 @@ ...@@ -83,7 +97,9 @@
<value> <string>uid\r\n <value> <string>uid\r\n
getLanguage\r\n getLanguage\r\n
getVersion\r\n getVersion\r\n
getRevision</string> </value> getRevision\r\n
getEffectiveDate\r\n
getExpirationDate</string> </value>
</item> </item>
<item> <item>
<key> <string>cache_time_</string> </key> <key> <string>cache_time_</string> </key>
...@@ -132,7 +148,8 @@ VALUES\n ...@@ -132,7 +148,8 @@ VALUES\n
<dtml-sqlvar expr="getVersion[loop_item]" type="string" optional>,\n <dtml-sqlvar expr="getVersion[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getLanguage[loop_item]" type="string" optional>,\n <dtml-sqlvar expr="getLanguage[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getRevision[loop_item]" type="string" optional>,\n <dtml-sqlvar expr="getRevision[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getEffectiveDate[loop_item]" type="datetime" optional>\n <dtml-sqlvar expr="getEffectiveDate[loop_item]" type="datetime" optional>,\n
<dtml-sqlvar expr="getExpirationDate[loop_item]" type="datetime" optional>\n
)\n )\n
<dtml-if sequence-end>\n <dtml-if sequence-end>\n
<dtml-else>\n <dtml-else>\n
...@@ -188,7 +205,8 @@ VALUES\n ...@@ -188,7 +205,8 @@ VALUES\n
<dtml-sqlvar expr="getVersion[loop_item]" type="string" optional>,\n <dtml-sqlvar expr="getVersion[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getLanguage[loop_item]" type="string" optional>,\n <dtml-sqlvar expr="getLanguage[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getRevision[loop_item]" type="string" optional>,\n <dtml-sqlvar expr="getRevision[loop_item]" type="string" optional>,\n
<dtml-sqlvar expr="getEffectiveDate[loop_item]" type="datetime" optional>\n <dtml-sqlvar expr="getEffectiveDate[loop_item]" type="datetime" optional>,\n
<dtml-sqlvar expr="getExpirationDate[loop_item]" type="datetime" optional>\n
)\n )\n
<dtml-if sequence-end>\n <dtml-if sequence-end>\n
<dtml-else>\n <dtml-else>\n
......
...@@ -62,10 +62,12 @@ ...@@ -62,10 +62,12 @@
`language` varchar(2) default \'\',\n `language` varchar(2) default \'\',\n
`revision` varchar(10) default \'\',\n `revision` varchar(10) default \'\',\n
`effective_date` datetime default NULL,\n `effective_date` datetime default NULL,\n
`expiration_date` datetime default NULL,\n
PRIMARY KEY (`uid`),\n PRIMARY KEY (`uid`),\n
KEY `version` (`version`),\n KEY `version` (`version`),\n
KEY `language` (`language`),\n KEY `language` (`language`),\n
KEY `effective_date` (`effective_date`)\n KEY `effective_date` (`effective_date`),\n
KEY `expiration_date` (`effective_date`)\n
) TYPE=InnoDB;\n ) TYPE=InnoDB;\n
</string> </value> </string> </value>
</item> </item>
...@@ -109,10 +111,12 @@ ...@@ -109,10 +111,12 @@
`language` varchar(2) default \'\',\n `language` varchar(2) default \'\',\n
`revision` varchar(10) default \'\',\n `revision` varchar(10) default \'\',\n
`effective_date` datetime default NULL,\n `effective_date` datetime default NULL,\n
`expiration_date` datetime default NULL,\n
PRIMARY KEY (`uid`),\n PRIMARY KEY (`uid`),\n
KEY `version` (`version`),\n KEY `version` (`version`),\n
KEY `language` (`language`),\n KEY `language` (`language`),\n
KEY `effective_date` (`effective_date`)\n KEY `effective_date` (`effective_date`),\n
KEY `expiration_date` (`effective_date`)\n
) TYPE=InnoDB;\n ) TYPE=InnoDB;\n
</string> </value> </string> </value>
</item> </item>
......
2009-04-15 Kazuhiko
* add effective_date and expiration_date in versioning table.
2009-04-01 vincentd 2009-04-01 vincentd
* Move here versioning table from erp5_dms_mysql_innodb_catalog. * Move here versioning table from erp5_dms_mysql_innodb_catalog.
......
135 136
\ 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