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