forked from buckyroberts/Social-Network
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path100_mini_update.sql
More file actions
52 lines (42 loc) · 1.91 KB
/
Copy path100_mini_update.sql
File metadata and controls
52 lines (42 loc) · 1.91 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
ALTER TABLE `trade_users` ADD COLUMN `shippingFullName` VARCHAR(250)
AFTER `userID`;
ALTER TABLE `trade_users` ADD COLUMN `shippingAddress2` VARCHAR(500)
AFTER `shippingAddress`;
ALTER TABLE `trade_shipping_info` DROP `lastName`;
ALTER TABLE `trade_shipping_info` CHANGE `firstName` `fullName` VARCHAR(512);
ALTER TABLE `trade_shipping_info` ADD COLUMN `address2` VARCHAR(500)
AFTER `address`;
CREATE TABLE `shop_orders_shipping` (
`shippingID` INT(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`fullName` VARCHAR(512)
COLLATE utf8_unicode_ci DEFAULT NULL,
`address` VARCHAR(1000)
COLLATE utf8_unicode_ci DEFAULT NULL,
`address2` VARCHAR(500)
COLLATE utf8_unicode_ci DEFAULT NULL,
`city` VARCHAR(500)
COLLATE utf8_unicode_ci DEFAULT NULL,
`state` VARCHAR(500)
COLLATE utf8_unicode_ci DEFAULT NULL,
`countryID` INT(11) UNSIGNED DEFAULT NULL,
`zip` VARCHAR(30)
COLLATE utf8_unicode_ci DEFAULT NULL,
PRIMARY KEY (`shippingID`)
)
ENGINE = MyISAM
DEFAULT CHARSET = utf8
COLLATE = utf8_unicode_ci
CHECKSUM = 1
DELAY_KEY_WRITE = 1
ROW_FORMAT = DYNAMIC;
ALTER TABLE `shop_orders` DROP `shippingAddress`;
ALTER TABLE `shop_orders` ADD COLUMN `buyerShippingID` INT(11)
AFTER `totalPrice`;
RENAME TABLE shop_bitcoin_transaction TO bitcoin_transaction;
ALTER TABLE bitcoin_transaction MODIFY COLUMN `activityType` TINYINT(2) DEFAULT '1'
COMMENT '1: Listing product in shop, 2: Shop order transaction, 3: Listing item in trade section';
ALTER TABLE bitcoin_transaction MODIFY COLUMN `activityID` INT(11) UNSIGNED NOT NULL
COMMENT 'Listing product ID / Shop Order ID / Trade Item ID';
ALTER TABLE `trade_users` ADD COLUMN `optProductSoldOnShop` TINYINT(2) DEFAULT '1'
COMMENT '0: disagree; 1: agree that you receive notification when someone buy your product on shop'
AFTER `optFeedbackReceived`;