From 7c60afcca2f3dda6d9276a5311784bb4cd51ae2e Mon Sep 17 00:00:00 2001
From: Yusei Tahara <yusei@nexedi.com>
Date: Thu, 22 May 2008 16:38:29 +0000
Subject: [PATCH] 2008-05-22 yusei * Change viewable_owner and owner columns of
 catalog table from varchar(32) to varbinary(255).

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@21082 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../erp5_mysql_innodb/z_create_catalog.xml         | 14 ++++++++++----
 .../erp5_mysql_innodb_catalog/bt/change_log        |  3 +++
 .../erp5_mysql_innodb_catalog/bt/revision          |  2 +-
 3 files changed, 14 insertions(+), 5 deletions(-)

diff --git a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_catalog.xml b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_catalog.xml
index 91f8c3d60e..2b0ef08f94 100644
--- a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_catalog.xml
+++ b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_catalog.xml
@@ -42,6 +42,12 @@
               </object>
             </value>
         </item>
+        <item>
+            <key> <string>_col</string> </key>
+            <value>
+              <tuple/>
+            </value>
+        </item>
         <item>
             <key> <string>allow_simple_one_argument_traversal</string> </key>
             <value>
@@ -95,8 +101,8 @@
 CREATE TABLE `catalog` (\n
   `uid` BIGINT UNSIGNED NOT NULL,\n
   `security_uid` INT UNSIGNED,\n
-  `owner` varchar(32) NOT NULL default \'\',\n
-  `viewable_owner` varchar(32) NOT NULL default \'\',\n
+  `owner` varbinary(255) NOT NULL default \'\',\n
+  `viewable_owner` varbinary(255) NOT NULL default \'\',\n
   `path` varchar(255) NOT NULL default \'\',\n
   `relative_url` varchar(255) NOT NULL default \'\',\n
   `parent_uid` BIGINT UNSIGNED default \'0\',\n
@@ -187,8 +193,8 @@ CREATE TABLE `catalog` (\n
 CREATE TABLE `catalog` (\n
   `uid` BIGINT UNSIGNED NOT NULL,\n
   `security_uid` INT UNSIGNED,\n
-  `owner` varchar(32) NOT NULL default \'\',\n
-  `viewable_owner` varchar(32) NOT NULL default \'\',\n
+  `owner` varbinary(255) NOT NULL default \'\',\n
+  `viewable_owner` varbinary(255) NOT NULL default \'\',\n
   `path` varchar(255) NOT NULL default \'\',\n
   `relative_url` varchar(255) NOT NULL default \'\',\n
   `parent_uid` BIGINT UNSIGNED default \'0\',\n
diff --git a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/change_log b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/change_log
index 3b5d1b2dd0..c847eb25a9 100644
--- a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/change_log
+++ b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/change_log
@@ -1,3 +1,6 @@
+2008-05-22 yusei
+* Change viewable_owner and owner columns of catalog table from varchar(32) to varbinary(255).
+
 2008-04-17 yusei
 * Revise version to 5.0.
 
diff --git a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision
index ffda4e73f0..3fbd193e4a 100644
--- a/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision
+++ b/product/ERP5/bootstrap/erp5_mysql_innodb_catalog/bt/revision
@@ -1 +1 @@
-105
\ No newline at end of file
+106
\ No newline at end of file
-- 
2.30.9