Commit b0379ff1 authored by Mario's avatar Mario

use innodb engine and utf8mb4 charset for new installs

parent b12b695f
......@@ -115,26 +115,26 @@ function cart_dbUpgrade () {
// buyer_altid = email address or other unique identifier for the buyer
"CREATE TABLE cart_orders (
id int(10) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
seller_channel varchar(255),
buyer_xchan varchar(255),
buyer_altid varchar(255),
order_hash varchar(255) NOT NULL,
seller_channel varchar(191),
buyer_xchan varchar(191),
buyer_altid varchar(191),
order_hash varchar(191) NOT NULL,
order_expires datetime,
order_checkedout datetime,
order_paid datetime,
order_currency varchar(10) default 'USD',
order_meta text,
UNIQUE (order_hash)
) ENGINE = MYISAM DEFAULT CHARSET=utf8;
) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4;
",
"alter table cart_orders add index (seller_channel)",
"CREATE TABLE cart_orderitems (
id int(10) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT,
order_hash varchar(255),
order_hash varchar(191),
item_lastupdate datetime,
item_type varchar(25),
item_sku varchar(25),
item_desc varchar(255),
item_desc varchar(191),
item_qty int(10) UNSIGNED,
item_price numeric(7,2),
item_tax_rate numeric (4,4),
......@@ -142,7 +142,7 @@ function cart_dbUpgrade () {
item_fulfilled tinyint(1) NOT NULL DEFAULT 0,
item_exception tinyint(1) NOT NULL DEFAULT 0,
item_meta text
) ENGINE = MYISAM DEFAULT CHARSET=utf8;
) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4;
",
"alter table cart_orderitems add index (order_hash)"
),
......
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