@evershop/evershop 1.0.0-beta → 1.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evershop/evershop",
3
- "version": "1.0.0-beta",
3
+ "version": "1.0.0-beta.1",
4
4
  "description": "The React Ecommerce platform. Built with React and MySQL. Open-source and free. Fast and customizable.",
5
5
  "files": [
6
6
  "bin",
@@ -6,7 +6,7 @@ module.exports = exports = async () => {
6
6
  await execute(pool, `DROP TABLE IF EXISTS \`admin_user\``);
7
7
  await execute(pool, `CREATE TABLE \`admin_user\` (
8
8
  \`admin_user_id\` int(10) unsigned NOT NULL AUTO_INCREMENT,
9
- \`uuid\` varchar(255) DEFAULT replace(uuid(),'-',''),
9
+ \`uuid\` varchar(255) DEFAULT (replace(uuid(),'-','')),
10
10
  \`status\` smallint(5) unsigned NOT NULL,
11
11
  \`email\` varchar(255) NOT NULL,
12
12
  \`password\` varchar(255) NOT NULL,
@@ -3,12 +3,12 @@ const { pool } = require('../../../lib/mysql/connection');
3
3
 
4
4
  // eslint-disable-next-line no-multi-assign
5
5
  module.exports = exports = async () => {
6
- await execute(pool, `ALTER TABLE \`cart\` ADD \`uuid\` varchar(255) DEFAULT replace(uuid(),'-','') AFTER \`cart_id\``);
7
- await execute(pool, `ALTER TABLE \`order\` ADD \`uuid\` varchar(255) DEFAULT replace(uuid(),'-','') AFTER \`order_id\``);
8
- await execute(pool, `ALTER TABLE \`cart_item\` ADD \`uuid\` varchar(255) DEFAULT replace(uuid(),'-','') AFTER \`cart_item_id\``);
9
- await execute(pool, `ALTER TABLE \`order_item\` ADD \`uuid\` varchar(255) DEFAULT replace(uuid(),'-','') AFTER \`order_item_id\``);
10
- await execute(pool, `ALTER TABLE \`cart_address\` ADD \`uuid\` varchar(255) DEFAULT replace(uuid(),'-','') AFTER \`cart_address_id\``);
11
- await execute(pool, `ALTER TABLE \`order_address\` ADD \`uuid\` varchar(255) DEFAULT replace(uuid(),'-','') AFTER \`order_address_id\``);
12
- await execute(pool, `ALTER TABLE \`payment_transaction\` ADD \`uuid\` varchar(255) DEFAULT replace(uuid(),'-','') AFTER \`payment_transaction_id\``);
13
- await execute(pool, `ALTER TABLE \`shipment\` ADD \`uuid\` varchar(255) DEFAULT replace(uuid(),'-','') AFTER \`shipment_id\``);
6
+ await execute(pool, `ALTER TABLE \`cart\` ADD \`uuid\` varchar(255) DEFAULT (replace(uuid(),'-','')) AFTER \`cart_id\``);
7
+ await execute(pool, `ALTER TABLE \`order\` ADD \`uuid\` varchar(255) DEFAULT (replace(uuid(),'-','')) AFTER \`order_id\``);
8
+ await execute(pool, `ALTER TABLE \`cart_item\` ADD \`uuid\` varchar(255) DEFAULT (replace(uuid(),'-','')) AFTER \`cart_item_id\``);
9
+ await execute(pool, `ALTER TABLE \`order_item\` ADD \`uuid\` varchar(255) DEFAULT (replace(uuid(),'-','')) AFTER \`order_item_id\``);
10
+ await execute(pool, `ALTER TABLE \`cart_address\` ADD \`uuid\` varchar(255) DEFAULT (replace(uuid(),'-','')) AFTER \`cart_address_id\``);
11
+ await execute(pool, `ALTER TABLE \`order_address\` ADD \`uuid\` varchar(255) DEFAULT (replace(uuid(),'-','')) AFTER \`order_address_id\``);
12
+ await execute(pool, `ALTER TABLE \`payment_transaction\` ADD \`uuid\` varchar(255) DEFAULT (replace(uuid(),'-','')) AFTER \`payment_transaction_id\``);
13
+ await execute(pool, `ALTER TABLE \`shipment\` ADD \`uuid\` varchar(255) DEFAULT (replace(uuid(),'-','')) AFTER \`shipment_id\``);
14
14
  };
@@ -3,6 +3,6 @@ const { pool } = require('../../../lib/mysql/connection');
3
3
 
4
4
  // eslint-disable-next-line no-multi-assign
5
5
  module.exports = exports = async () => {
6
- await execute(pool, `ALTER TABLE \`customer\` ADD \`uuid\` varchar(255) DEFAULT replace(uuid(),'-','') AFTER \`customer_id\``);
7
- await execute(pool, `ALTER TABLE \`customer_address\` ADD \`uuid\` varchar(255) DEFAULT replace(uuid(),'-','') AFTER \`customer_address_id\``);
6
+ await execute(pool, `ALTER TABLE \`customer\` ADD \`uuid\` varchar(255) DEFAULT (replace(uuid(),'-','')) AFTER \`customer_id\``);
7
+ await execute(pool, `ALTER TABLE \`customer_address\` ADD \`uuid\` varchar(255) DEFAULT (replace(uuid(),'-','')) AFTER \`customer_address_id\``);
8
8
  };