v48.sql 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. UPDATE `business_settings` SET `value` = '4.8' WHERE `business_settings`.`type` = 'current_version';
  2. ALTER TABLE `shops` ADD `phone` VARCHAR(255) NULL DEFAULT NULL AFTER `sliders`;
  3. INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'proxypay', '1', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
  4. INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'proxypay_sandbox', '1', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
  5. ALTER TABLE `products` ADD `discount_start_date` INT NULL DEFAULT NULL AFTER `discount_type`, ADD `discount_end_date` INT NULL DEFAULT NULL AFTER `discount_start_date`;
  6. CREATE TABLE `attribute_values` (
  7. `id` int(11) NOT NULL,
  8. `attribute_id` int(11) NOT NULL,
  9. `value` varchar(255) NOT NULL,
  10. `color_code` varchar(100) DEFAULT NULL,
  11. `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  12. `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
  13. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  14. --
  15. -- Indexes for dumped tables
  16. --
  17. --
  18. -- Indexes for table `attribute_values`
  19. --
  20. ALTER TABLE `attribute_values`
  21. ADD PRIMARY KEY (`id`);
  22. --
  23. -- AUTO_INCREMENT for dumped tables
  24. --
  25. --
  26. -- AUTO_INCREMENT for table `attribute_values`
  27. --
  28. ALTER TABLE `attribute_values` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  29. CREATE TABLE `proxypay_payments` (
  30. `id` int(11) NOT NULL,
  31. `payment_type` varchar(20) NOT NULL,
  32. `reference_id` varchar(20) NOT NULL,
  33. `order_id` int(11) DEFAULT NULL,
  34. `package_id` int(11) DEFAULT NULL,
  35. `user_id` int(11) NOT NULL,
  36. `amount` double(25,2) NOT NULL DEFAULT 0.00,
  37. `created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  38. `updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
  39. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  40. --
  41. -- Indexes for dumped tables
  42. --
  43. --
  44. -- Indexes for table `proxypay_payments`
  45. --
  46. ALTER TABLE `proxypay_payments`
  47. ADD PRIMARY KEY (`id`);
  48. --
  49. -- AUTO_INCREMENT for dumped tables
  50. --
  51. --
  52. -- AUTO_INCREMENT for table `proxypay_payments`
  53. --
  54. ALTER TABLE `proxypay_payments`
  55. MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  56. COMMIT;