v53.sql 856 B

123456789101112131415161718
  1. ALTER TABLE `products` ADD INDEX(`unit_price`);
  2. ALTER TABLE `products` ADD INDEX(`created_at`);
  3. ALTER TABLE `products` CHANGE `tags` `tags` VARCHAR(500) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;
  4. ALTER TABLE `shops` ADD `delivery_pickup_latitude` FLOAT NULL DEFAULT NULL AFTER `shipping_cost`,
  5. ADD `delivery_pickup_longitude` FLOAT NULL DEFAULT NULL AFTER `delivery_pickup_latitude`;
  6. ALTER TABLE `sellers` ADD `rating` DOUBLE(3,2) NOT NULL DEFAULT '0' AFTER `user_id`;
  7. ALTER TABLE `sellers` ADD `num_of_sale` INT NOT NULL DEFAULT '0' AFTER `rating`;
  8. ALTER TABLE `sellers` ADD `num_of_reviews` INT NOT NULL DEFAULT '0' AFTER `rating`;
  9. ALTER TABLE `addons` ADD `purchase_code` VARCHAR(255) NULL DEFAULT NULL AFTER `image`;
  10. UPDATE `business_settings` SET `value` = '5.3' WHERE `business_settings`.`type` = 'current_version';
  11. COMMIT;