Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
140
Merge Requests
140
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
09344f72
Commit
09344f72
authored
Sep 27, 2024
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*: use ROCKSDB instead of InnoDB.
parent
2b72878e
Changes
32
Show whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
58 additions
and
58 deletions
+58
-58
bt5/erp5_accounting/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_accounting_transaction.sql
...log/erp5_mysql_innodb/z_create_accounting_transaction.sql
+1
-1
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testERP5Catalog.py
...mplateItem/portal_components/test.erp5.testERP5Catalog.py
+6
-6
bt5/erp5_email_reader/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_crawler.sql
...tem/portal_catalog/erp5_mysql_innodb/z_create_crawler.sql
+1
-1
bt5/erp5_email_reader/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_email_thread.sql
...ortal_catalog/erp5_mysql_innodb/z_create_email_thread.sql
+1
-1
bt5/erp5_full_text_sphinxse_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_fulltext.sql
...em/portal_catalog/erp5_mysql_innodb/z_create_fulltext.sql
+1
-1
bt5/erp5_ingestion_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_email.sql
...eItem/portal_catalog/erp5_mysql_innodb/z_create_email.sql
+1
-1
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_movement.sql
...em/portal_catalog/erp5_mysql_innodb/z_create_movement.sql
+1
-1
bt5/erp5_project_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_reporting_outcome.sql
..._catalog/erp5_mysql_innodb/z_create_reporting_outcome.sql
+1
-1
bt5/erp5_security_uid_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_roles_and_users.sql
...al_catalog/erp5_mysql_innodb/z_create_roles_and_users.sql
+1
-1
bt5/erp5_stock_cache/SkinTemplateItem/portal_skins/erp5_stock_cache/SimulationTool_zCreateInventoryCache.sql
...erp5_stock_cache/SimulationTool_zCreateInventoryCache.sql
+1
-1
bt5/erp5_syncml/SkinTemplateItem/portal_skins/erp5_syncml/z_create_syncml.sql
...TemplateItem/portal_skins/erp5_syncml/z_create_syncml.sql
+1
-1
bt5/erp5_worklist_sql/SkinTemplateItem/portal_skins/erp5_worklist_sql/Base_zCreateWorklistTable.sql
...tal_skins/erp5_worklist_sql/Base_zCreateWorklistTable.sql
+1
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/IdTool_zCreateEmptyTable.sql
...eItem/portal_skins/erp5_core/IdTool_zCreateEmptyTable.sql
+1
-1
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/IdTool_zCreateTable.sql
...mplateItem/portal_skins/erp5_core/IdTool_zCreateTable.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_alarm.sql
...eItem/portal_catalog/erp5_mysql_innodb/z_create_alarm.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_catalog.sql
...tem/portal_catalog/erp5_mysql_innodb/z_create_catalog.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_category.sql
...em/portal_catalog/erp5_mysql_innodb/z_create_category.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_delivery.sql
...em/portal_catalog/erp5_mysql_innodb/z_create_delivery.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_item.sql
...teItem/portal_catalog/erp5_mysql_innodb/z_create_item.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_measure.sql
...tem/portal_catalog/erp5_mysql_innodb/z_create_measure.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_predicate.sql
...m/portal_catalog/erp5_mysql_innodb/z_create_predicate.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_predicate_category.sql
...catalog/erp5_mysql_innodb/z_create_predicate_category.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_quantity_unit_conversion.sql
...g/erp5_mysql_innodb/z_create_quantity_unit_conversion.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_record.sql
...Item/portal_catalog/erp5_mysql_innodb/z_create_record.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_roles_and_users.sql
...al_catalog/erp5_mysql_innodb/z_create_roles_and_users.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_stock.sql
...eItem/portal_catalog/erp5_mysql_innodb/z_create_stock.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_subject.sql
...tem/portal_catalog/erp5_mysql_innodb/z_create_subject.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_transformation.sql
...tal_catalog/erp5_mysql_innodb/z_create_transformation.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_translation.sql
...portal_catalog/erp5_mysql_innodb/z_create_translation.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_user.sql
...teItem/portal_catalog/erp5_mysql_innodb/z_create_user.sql
+1
-1
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_versioning.sql
.../portal_catalog/erp5_mysql_innodb/z_create_versioning.sql
+1
-1
product/ZMySQLDA/tests/testTableStructureMigration.py
product/ZMySQLDA/tests/testTableStructureMigration.py
+22
-22
No files found.
bt5/erp5_accounting/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_accounting_transaction.sql
View file @
09344f72
...
...
@@ -21,4 +21,4 @@ CREATE TABLE `accounting_transaction` (
PRIMARY
KEY
(
`uid`
,
`order_id`
),
KEY
(
`section_uid`
,
`mirror_section_uid`
)
-- TODO: keys
)
ENGINE
=
Inno
DB
)
ENGINE
=
ROCKS
DB
bt5/erp5_core_test/TestTemplateItem/portal_components/test.erp5.testERP5Catalog.py
View file @
09344f72
...
...
@@ -1354,7 +1354,7 @@ class TestERP5Catalog(ERP5TypeTestCase, LogInterceptor):
`uid` BIGINT UNSIGNED NOT NULL,
`dummy_title` varchar(32) NOT NULL default '',
PRIMARY KEY (`uid`)
) ENGINE=
Inno
DB;
) ENGINE=
ROCKS
DB;
"""
drop_summy_table_sql
=
"""
DROP TABLE IF EXISTS `dummy`
...
...
@@ -2272,7 +2272,7 @@ CREATE TABLE `%s` (
`owner_reference` varchar(32) NOT NULL default '',
PRIMARY KEY (`uid`),
KEY `version` (`owner_reference`)
) ENGINE=
Inno
DB;
) ENGINE=
ROCKS
DB;
"""
%
local_roles_table
sql_catalog
.
newContent
(
portal_type
=
'SQL Method'
,
...
...
@@ -2458,7 +2458,7 @@ CREATE TABLE `%s` (
PRIMARY KEY (`uid`),
KEY `assignee_reference` (`assignee_reference`),
KEY `viewable_assignee_reference` (`viewable_assignee_reference`)
) ENGINE=
Inno
DB;
) ENGINE=
ROCKS
DB;
"""
%
local_roles_table
sql_catalog
.
newContent
(
portal_type
=
'SQL Method'
,
...
...
@@ -2629,7 +2629,7 @@ CREATE TABLE `%s` (
PRIMARY KEY (`uid`),
KEY `assignee_reference` (`assignee_reference`),
KEY `viewable_assignee_reference` (`viewable_assignee_reference`)
) ENGINE=
Inno
DB;
) ENGINE=
ROCKS
DB;
"""
%
local_roles_table
sql_catalog
.
newContent
(
portal_type
=
'SQL Method'
,
...
...
@@ -2893,7 +2893,7 @@ CREATE TABLE `%s` (
`viewable_assignee_reference` varchar(32) NOT NULL default '',
PRIMARY KEY (`uid`),
KEY `viewable_assignee_reference` (`viewable_assignee_reference`)
) ENGINE=
Inno
DB;
) ENGINE=
ROCKS
DB;
"""
%
local_roles_table
sql_catalog
.
newContent
(
portal_type
=
'SQL Method'
,
...
...
@@ -3127,7 +3127,7 @@ CREATE TABLE `%s` (
`viewable_assignee_reference` varchar(32) NOT NULL default '',
PRIMARY KEY (`uid`),
KEY `viewable_assignee_reference` (`viewable_assignee_reference`)
) ENGINE=
Inno
DB;
) ENGINE=
ROCKS
DB;
"""
%
local_roles_table
sql_catalog
.
newContent
(
portal_type
=
'SQL Method'
,
...
...
bt5/erp5_email_reader/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_crawler.sql
View file @
09344f72
...
...
@@ -4,4 +4,4 @@ CREATE TABLE `crawler` (
`creation_date_index`
INT
,
PRIMARY
KEY
(
`uid`
),
KEY
`creation_date_index`
(
`creation_date_index`
,
`frequency_index`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
bt5/erp5_email_reader/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_email_thread.sql
View file @
09344f72
...
...
@@ -13,4 +13,4 @@ CREATE TABLE `email_thread` (
KEY
`bcc_recipient`
(
`bcc_recipient`
),
KEY
`validation_state`
(
`validation_state`
),
KEY
`start_date`
(
`start_date`
,
`validation_state`
)
)
ENGINE
=
InnoDB
;
\ No newline at end of file
)
ENGINE
=
ROCKSDB
;
\ No newline at end of file
bt5/erp5_full_text_sphinxse_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_fulltext.sql
View file @
09344f72
...
...
@@ -6,4 +6,4 @@ CREATE TABLE `full_text` (
`uid`
BIGINT
UNSIGNED
NOT
NULL
,
`SearchableText`
MEDIUMTEXT
,
PRIMARY
KEY
(
`uid`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
bt5/erp5_ingestion_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_email.sql
View file @
09344f72
...
...
@@ -3,4 +3,4 @@ CREATE TABLE `email` (
`url_string`
varchar
(
255
),
PRIMARY
KEY
`uid`
(
`uid`
),
KEY
`url_string`
(
`url_string`
)
)
ENGINE
=
InnoDB
;
\ No newline at end of file
)
ENGINE
=
ROCKSDB
;
\ No newline at end of file
bt5/erp5_movement_table_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_movement.sql
View file @
09344f72
...
...
@@ -22,4 +22,4 @@ CREATE TABLE `movement` (
KEY
`resource_uid`
(
`resource_uid`
),
KEY
`is_accountable`
(
`is_accountable`
),
KEY
`variation_text`
(
`variation_text`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
bt5/erp5_project_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_reporting_outcome.sql
View file @
09344f72
...
...
@@ -2,4 +2,4 @@ CREATE TABLE reporting_outcome (
uid
BIGINT
UNSIGNED
NOT
NULL
,
outcome_description
VARCHAR
(
255
),
PRIMARY
KEY
`uid`
(
`uid`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
bt5/erp5_security_uid_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_roles_and_users.sql
View file @
09344f72
...
...
@@ -5,4 +5,4 @@ CREATE TABLE roles_and_users (
KEY
`uid`
(
`uid`
),
KEY
`allowedRolesAndUsers`
(
`allowedRolesAndUsers`
),
KEY
`local_roles_group_id`
(
`local_roles_group_id`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
bt5/erp5_stock_cache/SkinTemplateItem/portal_skins/erp5_stock_cache/SimulationTool_zCreateInventoryCache.sql
View file @
09344f72
...
...
@@ -4,4 +4,4 @@ Create table `inventory_cache` (
`result`
LONGBLOB
NOT
NULL
,
PRIMARY
KEY
(
`query`
,
`date`
),
KEY
(
`date`
)
)
Engine
=
InnoDB
\ No newline at end of file
)
Engine
=
ROCKSDB
\ No newline at end of file
bt5/erp5_syncml/SkinTemplateItem/portal_skins/erp5_syncml/z_create_syncml.sql
View file @
09344f72
...
...
@@ -4,4 +4,4 @@ CREATE TABLE `syncml` (
`data`
LONGBLOB
NULL
,
PRIMARY
KEY
(
`path`
),
KEY
`gid`
(
`gid`
,
`path`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
bt5/erp5_worklist_sql/SkinTemplateItem/portal_skins/erp5_worklist_sql/Base_zCreateWorklistTable.sql
View file @
09344f72
...
...
@@ -30,4 +30,4 @@ CREATE TABLE `worklist_cache` (
KEY
`portal_simulation_owner`
(
`portal_type`
,
`simulation_state`
,
`viewable_owner`
),
KEY
`portal_validation_security`
(
`portal_type`
,
`validation_state`
,
`security_uid`
),
KEY
`portal_validation_owner`
(
`portal_type`
,
`validation_state`
,
`viewable_owner`
)
)
ENGINE
=
InnoDB
\ No newline at end of file
)
ENGINE
=
ROCKSDB
\ No newline at end of file
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/IdTool_zCreateEmptyTable.sql
View file @
09344f72
...
...
@@ -2,4 +2,4 @@ CREATE TABLE `portal_ids` (
`id_group`
VARBINARY
(
255
),
`last_id`
BIGINT
UNSIGNED
,
PRIMARY
KEY
(
`id_group`
)
)
ENGINE
=
InnoDB
;
\ No newline at end of file
)
ENGINE
=
ROCKSDB
;
\ No newline at end of file
product/ERP5/bootstrap/erp5_core/SkinTemplateItem/portal_skins/erp5_core/IdTool_zCreateTable.sql
View file @
09344f72
...
...
@@ -2,7 +2,7 @@ CREATE TABLE `portal_ids` (
`id_group`
VARBINARY
(
255
),
`last_id`
BIGINT
UNSIGNED
,
PRIMARY
KEY
(
`id_group`
)
)
ENGINE
=
Inno
DB
)
ENGINE
=
ROCKS
DB
<
dtml
-
var
sql_delimiter
>
<
dtml
-
in
expr
=
"getPortalObject().portal_ids.getDictLengthIdsItems()"
>
INSERT
INTO
`portal_ids`
(
`id_group`
,
`last_id`
)
VALUES
(
<
dtml
-
sqlvar
sequence
-
key
type
=
"string"
>
,
<
dtml
-
sqlvar
sequence
-
item
type
=
"int"
>
)
...
...
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_alarm.sql
View file @
09344f72
...
...
@@ -6,4 +6,4 @@ CREATE TABLE `alarm` (
`uid`
BIGINT
UNSIGNED
NOT
NULL
,
`alarm_date`
DATETIME
,
PRIMARY
KEY
(
`uid`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_catalog.sql
View file @
09344f72
...
...
@@ -54,4 +54,4 @@ CREATE TABLE `catalog` (
KEY
`invoice_state`
(
`invoice_state`
),
KEY
`payment_state`
(
`payment_state`
),
KEY
`event_state`
(
`event_state`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_category.sql
View file @
09344f72
...
...
@@ -9,4 +9,4 @@ CREATE TABLE `category` (
`category_strict_membership`
tinyint
(
1
)
default
'0'
,
PRIMARY
KEY
(
`uid`
,
`category_uid`
,
`base_category_uid`
,
`category_strict_membership`
),
KEY
`Membership`
(
`category_uid`
,
`base_category_uid`
)
)
ENGINE
=
InnoDB
;
\ No newline at end of file
)
ENGINE
=
ROCKSDB
;
\ No newline at end of file
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_delivery.sql
View file @
09344f72
...
...
@@ -18,4 +18,4 @@ CREATE TABLE `delivery` (
KEY
`destination_section_uid`
(
`destination_section_uid`
),
KEY
`resource_uid`
(
`resource_uid`
),
KEY
`start_date`
(
`start_date`
)
)
ENGINE
=
Inno
DB
)
ENGINE
=
ROCKS
DB
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_item.sql
View file @
09344f72
...
...
@@ -18,4 +18,4 @@ CREATE TABLE `item` (
KEY
`variation_text`
(
`variation_text`
),
KEY
`aggregate_simulation_state_date`
(
`aggregate_uid`
,
`simulation_state`
,
`date`
),
KEY
`node_simulation_state_date`
(
`node_uid`
,
`simulation_state`
,
`date`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_measure.sql
View file @
09344f72
...
...
@@ -6,4 +6,4 @@ CREATE TABLE `measure` (
`quantity`
REAL
NOT
NULL
,
PRIMARY
KEY
(
`uid`
,
`variation`
),
KEY
(
`metric_type_uid`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_predicate.sql
View file @
09344f72
...
...
@@ -7,4 +7,4 @@ CREATE TABLE predicate (
`start_date_range_min`
datetime
,
`start_date_range_max`
datetime
,
PRIMARY
KEY
`uid`
(
`uid`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_predicate_category.sql
View file @
09344f72
...
...
@@ -10,4 +10,4 @@ CREATE TABLE `predicate_category` (
PRIMARY
KEY
(
`uid`
,
`category_uid`
,
`base_category_uid`
,
`category_strict_membership`
),
KEY
`category_strict_membership`
(
`category_strict_membership`
),
KEY
`Membership`
(
`category_uid`
,
`base_category_uid`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_quantity_unit_conversion.sql
View file @
09344f72
...
...
@@ -5,4 +5,4 @@ CREATE TABLE `quantity_unit_conversion` (
`quantity`
REAL
NOT
NULL
,
PRIMARY
KEY
(
`resource_uid`
,
`quantity_unit_uid`
),
KEY
(
`uid`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_record.sql
View file @
09344f72
...
...
@@ -11,4 +11,4 @@ CREATE TABLE `record` (
PRIMARY
KEY
(
`uid`
),
KEY
`played`
(
`played`
),
KEY
`date`
(
`date`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_roles_and_users.sql
View file @
09344f72
...
...
@@ -3,4 +3,4 @@ CREATE TABLE roles_and_users (
allowedRolesAndUsers
VARCHAR
(
255
),
KEY
`uid`
(
`uid`
),
KEY
`allowedRolesAndUsers`
(
`allowedRolesAndUsers`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_stock.sql
View file @
09344f72
...
...
@@ -44,4 +44,4 @@ CREATE TABLE `stock` (
KEY
`resource_node_uid`
(
`resource_uid`
,
`node_uid`
),
KEY
`resource_section_node_uid`
(
`resource_uid`
,
`section_uid`
,
`node_uid`
,
`simulation_state`
),
KEY
`date`
(
`date`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_subject.sql
View file @
09344f72
...
...
@@ -3,4 +3,4 @@ CREATE TABLE subject (
subject
VARCHAR
(
255
),
KEY
`subject_set_uid`
(
`subject_set_uid`
),
KEY
`subject`
(
`subject`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_transformation.sql
View file @
09344f72
...
...
@@ -6,4 +6,4 @@ CREATE TABLE `transformation` (
`quantity`
double
,
KEY
`resource`
(
`uid`
,
`variation_text`
),
KEY
`transformed_resource`
(
`transformed_uid`
,
`transformed_variation_text`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_translation.sql
View file @
09344f72
...
...
@@ -7,4 +7,4 @@ CREATE TABLE translation (
KEY
`message`
(
`translated_message`
),
KEY
`original_message`
(
`original_message`
),
KEY
`type_translated_message`
(
`portal_type`
,
`translated_message`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_user.sql
View file @
09344f72
...
...
@@ -3,4 +3,4 @@ CREATE TABLE `user` (
`user_id`
varchar
(
255
)
binary
default
''
,
PRIMARY
KEY
(
`uid`
),
KEY
`user_id`
(
`user_id`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
product/ERP5/bootstrap/erp5_mysql_innodb_catalog/CatalogMethodTemplateItem/portal_catalog/erp5_mysql_innodb/z_create_versioning.sql
View file @
09344f72
...
...
@@ -16,4 +16,4 @@ CREATE TABLE `versioning` (
KEY
`effective_date`
(
`effective_date`
),
KEY
`expiration_date`
(
`expiration_date`
),
KEY
`frequency_index`
(
`creation_date_index`
,
`frequency_index`
)
)
ENGINE
=
Inno
DB
;
)
ENGINE
=
ROCKS
DB
;
product/ZMySQLDA/tests/testTableStructureMigration.py
View file @
09344f72
...
...
@@ -66,13 +66,13 @@ class TestTableStructureMigrationTestCase(ERP5TypeTestCase):
"""
\
CREATE TABLE `X` (
`a` int(11) DEFAULT NULL
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
dedent
(
"""
\
CREATE TABLE `X` (
`a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
self
.
query
(
"SELECT a, b FROM X"
)
def
test_remove_column
(
self
):
...
...
@@ -82,12 +82,12 @@ class TestTableStructureMigrationTestCase(ERP5TypeTestCase):
CREATE TABLE `X` (
`a` int(11) DEFAULT NULL,
`b` int(11) DEFAULT NULL
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
dedent
(
"""
\
CREATE TABLE `X` (
`b` int(11) DEFAULT NULL
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
self
.
query
(
"SELECT b FROM X"
)
with
self
.
assertRaisesRegex
(
OperationalError
,
"Unknown column 'a' in 'field list'"
):
...
...
@@ -99,12 +99,12 @@ class TestTableStructureMigrationTestCase(ERP5TypeTestCase):
"""
\
CREATE TABLE `X` (
`a` int(11) DEFAULT NULL
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
dedent
(
"""
\
CREATE TABLE `X` (
`b` int(11) DEFAULT NULL
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
self
.
query
(
"SELECT b FROM X"
)
with
self
.
assertRaisesRegex
(
OperationalError
,
"Unknown column 'a' in 'field list'"
):
...
...
@@ -116,12 +116,12 @@ class TestTableStructureMigrationTestCase(ERP5TypeTestCase):
"""
\
CREATE TABLE `X` (
`a` varchar(10) DEFAULT NULL
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
dedent
(
"""
\
CREATE TABLE `X` (
`a` int(11) DEFAULT NULL
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
# insterting '1' will be casted as int
self
.
query
(
"INSERT INTO X VALUES ('1')"
)
self
.
assertEqual
((
1
,),
self
.
query
(
"SELECT a FROM X"
)[
1
][
0
])
...
...
@@ -132,12 +132,12 @@ class TestTableStructureMigrationTestCase(ERP5TypeTestCase):
"""
\
CREATE TABLE `X` (
`a` int(11) DEFAULT NULL
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
dedent
(
"""
\
CREATE TABLE `X` (
`a` int(11) DEFAULT 123
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
self
.
query
(
"INSERT INTO X VALUES ()"
)
self
.
assertEqual
((
123
,),
self
.
query
(
"SELECT a FROM X"
)[
1
][
0
])
...
...
@@ -147,12 +147,12 @@ class TestTableStructureMigrationTestCase(ERP5TypeTestCase):
"""
\
CREATE TABLE `X` (
`a` int(11) NOT NULL COMMENT 'old comment'
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
dedent
(
"""
\
CREATE TABLE `X` (
`a` int(11) NOT NULL COMMENT 'new comment'
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
self
.
assertEqual
(
(
'a'
,
'new comment'
),
self
.
query
(
...
...
@@ -170,13 +170,13 @@ class TestTableStructureMigrationTestCase(ERP5TypeTestCase):
"""
\
CREATE TABLE `X` (
`a` int(11) DEFAULT NULL
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
dedent
(
"""
\
CREATE TABLE `X` (
`a` int(11) DEFAULT NULL,
KEY `idx_a` (`a`)
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
self
.
query
(
"SELECT * FROM X USE INDEX (`idx_a`)"
)
def
test_remove_index
(
self
):
...
...
@@ -186,12 +186,12 @@ class TestTableStructureMigrationTestCase(ERP5TypeTestCase):
CREATE TABLE `X` (
`a` int(11) DEFAULT NULL,
KEY `idx_a` (`a`)
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
dedent
(
"""
\
CREATE TABLE `X` (
`a` int(11) DEFAULT NULL
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
with
self
.
assertRaisesRegex
(
OperationalError
,
"Key 'idx_a' doesn't exist in table 'X'"
):
self
.
query
(
"SELECT * FROM X USE INDEX (`idx_a`)"
)
...
...
@@ -204,14 +204,14 @@ class TestTableStructureMigrationTestCase(ERP5TypeTestCase):
`drop` int(11) DEFAULT NULL,
`alter` int(11) DEFAULT NULL,
KEY `CASE` (`drop`)
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
dedent
(
"""
\
CREATE TABLE `table` (
`and` int(11) DEFAULT NULL,
`alter` varchar(255) CHARACTER SET cp1250 COLLATE cp1250_croatian_ci DEFAULT 'BETWEEN',
KEY `use` (`alter`)
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
),
table_name
=
'table'
)
self
.
query
(
"SELECT `alter`, `and` FROM `table` USE INDEX (`use`)"
)
...
...
@@ -227,9 +227,9 @@ class TestTableStructureMigrationTestCase(ERP5TypeTestCase):
"""
\
CREATE TABLE `X` (
`a` int(11) DEFAULT NULL
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci"""
))
self
.
assertEqual
(
(
'X'
,
'
Inno
DB'
),
(
'X'
,
'
ROCKS
DB'
),
self
.
query
(
dedent
(
"""
\
...
...
@@ -245,12 +245,12 @@ class TestTableStructureMigrationTestCase(ERP5TypeTestCase):
"""
\
CREATE TABLE `X` (
`a` int(11) DEFAULT NULL
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='old comment'"""
),
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='old comment'"""
),
dedent
(
"""
\
CREATE TABLE `X` (
`a` int(11) DEFAULT NULL
) ENGINE=
Inno
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='new comment'"""
))
) ENGINE=
ROCKS
DB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci COMMENT='new comment'"""
))
self
.
assertEqual
(
(
'X'
,
'new comment'
),
self
.
query
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment