v60.sql 2.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. DROP TABLE `customers`;
  2. UPDATE `carts` SET `shipping_cost`=0.00 WHERE shipping_cost is null;
  3. UPDATE `products` SET `shipping_cost`=0.00 WHERE shipping_cost is null;
  4. ALTER TABLE `products` CHANGE `shipping_cost` `shipping_cost` DOUBLE(20,2) NOT NULL DEFAULT '0.00';
  5. ALTER TABLE `carts` CHANGE `shipping_cost` `shipping_cost` DOUBLE(20,2) NOT NULL DEFAULT '0.00';
  6. ALTER TABLE `shops`
  7. ADD `rating` double(3,2) NOT NULL DEFAULT 0.00 AFTER `address`,
  8. ADD `num_of_reviews` int(11) NOT NULL DEFAULT 0 AFTER `rating`,
  9. ADD `num_of_sale` int(11) NOT NULL DEFAULT 0 AFTER `num_of_reviews`,
  10. ADD `seller_package_id` int(11) DEFAULT NULL AFTER `num_of_sale`,
  11. ADD `product_upload_limit` int(11) NOT NULL DEFAULT 0 AFTER `seller_package_id`,
  12. ADD `package_invalid_at` date DEFAULT NULL AFTER `product_upload_limit`,
  13. ADD `verification_status` int(1) NOT NULL DEFAULT 0 AFTER `package_invalid_at`,
  14. ADD `verification_info` longtext COLLATE utf8_unicode_ci DEFAULT NULL AFTER `verification_status`,
  15. ADD `cash_on_delivery_status` int(1) NOT NULL DEFAULT 0 AFTER `verification_info`,
  16. ADD `admin_to_pay` double(20,2) NOT NULL DEFAULT 0.00 AFTER `cash_on_delivery_status`,
  17. ADD `bank_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL AFTER `delivery_pickup_longitude`,
  18. ADD `bank_acc_name` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL AFTER `bank_name`,
  19. ADD `bank_acc_no` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL AFTER `bank_acc_name`,
  20. ADD `bank_routing_no` int(50) DEFAULT NULL AFTER `bank_acc_no`,
  21. ADD `bank_payment_status` int(11) NOT NULL DEFAULT 0 AFTER `bank_routing_no`;
  22. ALTER TABLE `products` CHANGE `cash_on_delivery` `cash_on_delivery` TINYINT(1) NOT NULL DEFAULT '0' COMMENT '1 = On, 0 = Off';
  23. INSERT INTO `business_settings` (`id`, `type`, `value`, `lang`, `created_at`, `updated_at`)
  24. VALUES
  25. (NULL, 'min_order_amount_check_activation', NULL, NULL, current_timestamp(), current_timestamp()),
  26. (NULL, 'minimum_order_amount', NULL, NULL, current_timestamp(), current_timestamp());
  27. UPDATE `business_settings` SET `value` = '6.0' WHERE `business_settings`.`type` = 'current_version';
  28. COMMIT;