Commit c11ba71b authored by Yoshinori Okuji's avatar Yoshinori Okuji

Use a 64-bit unsigned integer for uid.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@3043 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ba7060d1
...@@ -13,40 +13,40 @@ class_file: ...@@ -13,40 +13,40 @@ class_file:
# Table: 'catalog' # Table: 'catalog'
# #
CREATE TABLE `catalog` ( CREATE TABLE `catalog` (
`uid` int(11) NOT NULL AUTO_INCREMENT, `uid` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
`security_uid` INT UNSIGNED, `security_uid` INT UNSIGNED,
`path` varchar(255) NOT NULL default '', `path` varchar(255) NOT NULL default '',
`relative_url` varchar(255) NOT NULL default '', `relative_url` varchar(255) NOT NULL default '',
`parent_uid` int(11) default '0', `parent_uid` BIGINT UNSIGNED default '0',
`id` varchar(30) default '', `id` varchar(255) default '',
`CreationDate` datetime default '0000-00-00 00:00:00', `CreationDate` datetime default '0000-00-00 00:00:00',
`description` text, `description` text,
`title` varchar(255) default '', `title` varchar(255) default '',
`meta_type` varchar(255) default '', `meta_type` varchar(255) default '',
`portal_type` varchar(255) default '', `portal_type` varchar(255) default '',
`opportunity_state` varchar(30) default '', `opportunity_state` varchar(255) default '',
`default_source_reference` varchar(30) default '', `default_source_reference` varchar(255) default '',
`default_destination_reference` varchar(30) default '', `default_destination_reference` varchar(255) default '',
`default_source_title` varchar(30) default '', `default_source_title` varchar(255) default '',
`default_destination_title` varchar(30) default '', `default_destination_title` varchar(255) default '',
`default_source_section_title` varchar(30) default '', `default_source_section_title` varchar(255) default '',
`default_destination_section_title` varchar(30) default '', `default_destination_section_title` varchar(255) default '',
`default_causality_id` varchar(30) default '', `default_causality_id` varchar(255) default '',
`location` varchar(30), `location` varchar(255),
`ean13_code` varchar(30), `ean13_code` varchar(255),
`validation_state` varchar(30) default '', `validation_state` varchar(255) default '',
`simulation_state` varchar(30) default '', `simulation_state` varchar(255) default '',
`causality_state` varchar(30) default '', `causality_state` varchar(255) default '',
`discussion_state` varchar(30) default '', `discussion_state` varchar(255) default '',
`invoice_state` varchar(30) default '', `invoice_state` varchar(255) default '',
`payment_state` varchar(30) default '', `payment_state` varchar(255) default '',
`event_state` varchar(30) default '', `event_state` varchar(255) default '',
`order_id` varchar(30) default '', `order_id` varchar(255) default '',
`reference` varchar(30) default '', `reference` varchar(255) default '',
`source_reference` varchar(30) default '', `source_reference` varchar(255) default '',
`destination_reference` varchar(30) default '', `destination_reference` varchar(255) default '',
`string_index` varchar(30), `string_index` varchar(255),
`int_index` int(11), `int_index` INT,
`float_index` real, `float_index` real,
PRIMARY KEY (`uid`), PRIMARY KEY (`uid`),
KEY `security_uid` (`security_uid`), KEY `security_uid` (`security_uid`),
......
...@@ -13,9 +13,9 @@ class_file: ...@@ -13,9 +13,9 @@ class_file:
# Table: 'category' # Table: 'category'
# #
CREATE TABLE `category` ( CREATE TABLE `category` (
`uid` int(11) default '0', `uid` BIGINT UNSIGNED NOT NULL,
`category_uid` int(11) default '0', `category_uid` BIGINT UNSIGNED default '0',
`base_category_uid` int(11) default '0', `base_category_uid` BIGINT UNSIGNED default '0',
`category_strict_membership` tinyint(1) default '0', `category_strict_membership` tinyint(1) default '0',
KEY `uid` (`uid`), KEY `uid` (`uid`),
KEY `category_strict_membership` (`category_strict_membership`), KEY `category_strict_membership` (`category_strict_membership`),
......
...@@ -13,23 +13,23 @@ class_file: ...@@ -13,23 +13,23 @@ class_file:
# Table: 'compatibility' # Table: 'compatibility'
# #
CREATE TABLE `compatibility` ( CREATE TABLE `compatibility` (
`uid` int(11) NOT NULL, `uid` BIGINT UNSIGNED NOT NULL,
`Creator` varchar(30) default '', `Creator` varchar(255) default '',
`Date` datetime default '0000-00-00 00:00:00', `Date` datetime default '0000-00-00 00:00:00',
`PrincipiaSearchSource` text, `PrincipiaSearchSource` text,
`SearchableText` text, `SearchableText` text,
`EffectiveDate` datetime default '0000-00-00 00:00:00', `EffectiveDate` datetime default '0000-00-00 00:00:00',
`ExpiresDate` datetime default '0000-00-00 00:00:00', `ExpiresDate` datetime default '0000-00-00 00:00:00',
`ModificationDate` datetime default '0000-00-00 00:00:00', `ModificationDate` datetime default '0000-00-00 00:00:00',
`Type` varchar(30) default '', `Type` varchar(255) default '',
`bobobase_modification_time` datetime default '0000-00-00 00:00:00', `bobobase_modification_time` datetime default '0000-00-00 00:00:00',
`created` datetime default '0000-00-00 00:00:00', `created` datetime default '0000-00-00 00:00:00',
`effective` datetime default '0000-00-00 00:00:00', `effective` datetime default '0000-00-00 00:00:00',
`expires` datetime default '0000-00-00 00:00:00', `expires` datetime default '0000-00-00 00:00:00',
`getIcon` varchar(30) default '', `getIcon` varchar(255) default '',
`in_reply_to` varchar(255) default '', `in_reply_to` varchar(255) default '',
`modified` datetime default '0000-00-00 00:00:00', `modified` datetime default '0000-00-00 00:00:00',
`review_state` varchar(30) default '', `review_state` varchar(255) default '',
`summary` text, `summary` text,
PRIMARY KEY (`uid`), PRIMARY KEY (`uid`),
KEY `Type` (`Type`), KEY `Type` (`Type`),
......
...@@ -9,12 +9,12 @@ class_ ...@@ -9,12 +9,12 @@ class_
</dtml-comment> </dtml-comment>
<params></params> <params></params>
CREATE TABLE `delivery` ( CREATE TABLE `delivery` (
`uid` int(11) default '0', `uid` BIGINT UNSIGNED NOT NULL,
`source_uid` int(11) default '0', `source_uid` BIGINT UNSIGNED default '0',
`destination_uid` int(11) default '0', `destination_uid` BIGINT UNSIGNED default '0',
`source_section_uid` int(11) default '0', `source_section_uid` BIGINT UNSIGNED default '0',
`destination_section_uid` int(11) default '0', `destination_section_uid` BIGINT UNSIGNED default '0',
`resource_uid` int(11) default '0', `resource_uid` BIGINT UNSIGNED default '0',
`start_date` datetime default NULL, `start_date` datetime default NULL,
`stop_date` datetime default NULL, `stop_date` datetime default NULL,
KEY `uid` (`uid`), KEY `uid` (`uid`),
......
...@@ -13,13 +13,13 @@ class_ ...@@ -13,13 +13,13 @@ class_
# Table: 'item' # Table: 'item'
# #
CREATE TABLE `item` ( CREATE TABLE `item` (
`uid` int(11) default '0', `uid` BIGINT UNSIGNED NOT NULL,
`date` datetime, `date` datetime,
`node_uid` int(11) default '0', `node_uid` BIGINT UNSIGNED default '0',
`section_uid` int(11) default '0', `section_uid` BIGINT UNSIGNED default '0',
`resource_uid` int(11) default '0', `resource_uid` BIGINT UNSIGNED default '0',
`aggregate_uid` int(11) default '0', `aggregate_uid` BIGINT UNSIGNED default '0',
`variation_text` VARCHAR(100), `variation_text` VARCHAR(255),
KEY `uid` (`uid`), KEY `uid` (`uid`),
KEY `node_uid` (`node_uid`), KEY `node_uid` (`node_uid`),
KEY `section_uid` (`section_uid`), KEY `section_uid` (`section_uid`),
......
...@@ -13,11 +13,11 @@ class_file: ...@@ -13,11 +13,11 @@ class_file:
# Table: 'movement' # Table: 'movement'
# #
CREATE TABLE `movement` ( CREATE TABLE `movement` (
`uid` int(11) default '0', `uid` BIGINT UNSIGNED NOT NULL,
`explanation_uid` int(11) default '0', `explanation_uid` BIGINT UNSIGNED default '0',
`source_uid` int(11) default '0', `source_uid` BIGINT UNSIGNED default '0',
`destination_uid` int(11) default '0', `destination_uid` BIGINT UNSIGNED default '0',
`resource_uid` int(11) default '0', `resource_uid` BIGINT UNSIGNED default '0',
`quantity` real default '0.0', `quantity` real default '0.0',
`inventory` real default NULL, `inventory` real default NULL,
`start_date` datetime, `start_date` datetime,
...@@ -33,7 +33,7 @@ CREATE TABLE `movement` ( ...@@ -33,7 +33,7 @@ CREATE TABLE `movement` (
`is_orderable` bool, `is_orderable` bool,
`is_deliverable` bool, `is_deliverable` bool,
`is_divergent` bool, `is_divergent` bool,
`variation_text` VARCHAR(100), `variation_text` VARCHAR(255),
KEY `uid` (`uid`), KEY `uid` (`uid`),
KEY `explanation_uid` (`explanation_uid`), KEY `explanation_uid` (`explanation_uid`),
KEY `source_uid` (`source_uid`), KEY `source_uid` (`source_uid`),
......
...@@ -9,7 +9,7 @@ class_file: ...@@ -9,7 +9,7 @@ class_file:
</dtml-comment> </dtml-comment>
<params></params> <params></params>
CREATE TABLE predicate ( CREATE TABLE predicate (
uid INT, uid BIGINT UNSIGNED NOT NULL,
`quantity` real , `quantity` real ,
`quantity_min` real , `quantity_min` real ,
`quantity_max` real , `quantity_max` real ,
......
...@@ -13,9 +13,9 @@ class_file: ...@@ -13,9 +13,9 @@ class_file:
# Table: 'category' # Table: 'category'
# #
CREATE TABLE `predicate_category` ( CREATE TABLE `predicate_category` (
`uid` int(11) default '0', `uid` BIGINT UNSIGNED NOT NULL,
`category_uid` int(11) default '0', `category_uid` BIGINT UNSIGNED default '0',
`base_category_uid` int(11) default '0', `base_category_uid` BIGINT UNSIGNED default '0',
`category_strict_membership` tinyint(1) default '0', `category_strict_membership` tinyint(1) default '0',
KEY `uid` (`uid`), KEY `uid` (`uid`),
KEY `category_strict_membership` (`category_strict_membership`), KEY `category_strict_membership` (`category_strict_membership`),
......
...@@ -9,8 +9,8 @@ class_file: ...@@ -9,8 +9,8 @@ class_file:
</dtml-comment> </dtml-comment>
<params></params> <params></params>
CREATE TABLE roles_and_users ( CREATE TABLE roles_and_users (
uid INT, uid INT UNSIGNED,
allowedRolesAndUsers VARCHAR(40), allowedRolesAndUsers VARCHAR(255),
KEY `uid` (`uid`), KEY `uid` (`uid`),
KEY `allowedRolesAndUsers` (`allowedRolesAndUsers`) KEY `allowedRolesAndUsers` (`allowedRolesAndUsers`)
) TYPE=InnoDB; ) TYPE=InnoDB;
...@@ -13,19 +13,19 @@ class_file: ...@@ -13,19 +13,19 @@ class_file:
# Table: 'stock' # Table: 'stock'
# #
CREATE TABLE `stock` ( CREATE TABLE `stock` (
`uid` int(11) NOT NULL default '0', `uid` BIGINT UNSIGNED NOT NULL,
`node_uid` int(11), `node_uid` BIGINT UNSIGNED,
`section_uid` int(11), `section_uid` BIGINT UNSIGNED,
`payment_uid` int(11), `payment_uid` BIGINT UNSIGNED,
`mirror_section_uid` int(11), `mirror_section_uid` BIGINT UNSIGNED,
`resource_uid` int(11), `resource_uid` BIGINT UNSIGNED,
`quantity` real , `quantity` real ,
`date` datetime, `date` datetime,
`price` real , `price` real ,
`is_accountable` bool, `is_accountable` bool,
`portal_type` VARCHAR(30), `portal_type` VARCHAR(255),
`simulation_state` varchar(30) default '', `simulation_state` varchar(255) default '',
`variation_text` VARCHAR(100), `variation_text` VARCHAR(255),
KEY `uid` (`uid`), KEY `uid` (`uid`),
KEY `quantity` (`quantity`), KEY `quantity` (`quantity`),
KEY `section_uid` (`section_uid`), KEY `section_uid` (`section_uid`),
......
...@@ -9,7 +9,7 @@ class_file: ...@@ -9,7 +9,7 @@ class_file:
</dtml-comment> </dtml-comment>
<params></params> <params></params>
CREATE TABLE subject ( CREATE TABLE subject (
uid INT, uid BIGINT UNSIGNED NOT NULL,
subject VARCHAR(255), subject VARCHAR(255),
KEY `uid` (`uid`), KEY `uid` (`uid`),
KEY `allowedRolesAndUsers` (`Subject`) KEY `allowedRolesAndUsers` (`Subject`)
......
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