v25.sql 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. ALTER TABLE `sellers` ADD `bank_name` VARCHAR(255) NULL DEFAULT NULL AFTER `admin_to_pay`, ADD `bank_acc_name` VARCHAR(200) NULL DEFAULT NULL AFTER `bank_name`, ADD `bank_acc_no` VARCHAR(50) NULL DEFAULT NULL AFTER `bank_acc_name`, ADD `bank_routing_no` INT(50) NULL DEFAULT NULL AFTER `bank_acc_no`;
  2. ALTER TABLE `sellers` ADD `bank_payment_status` INT NOT NULL DEFAULT '0' AFTER `bank_routing_no`;
  3. ALTER TABLE `payments` ADD `txn_code` VARCHAR(100) NULL DEFAULT NULL AFTER `payment_method`;
  4. ALTER TABLE `products` ADD `barcode` VARCHAR(255) NULL DEFAULT NULL AFTER `rating`;
  5. UPDATE `business_settings` SET `value` = '2.5' WHERE `business_settings`.`type` = 'current_version';
  6. ALTER TABLE `users` ADD `customer_package_id` INT(11) NULL DEFAULT NULL AFTER `phone`, ADD `remaining_uploads` INT(11) NULL DEFAULT NULL AFTER `customer_package_id`;
  7. INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'classified_product', '1', current_timestamp(), current_timestamp());
  8. -- phpMyAdmin SQL Dump
  9. -- version 5.0.1
  10. -- https://www.phpmyadmin.net/
  11. --
  12. -- Host: 127.0.0.1
  13. -- Generation Time: May 12, 2020 at 01:31 PM
  14. -- Server version: 10.4.11-MariaDB
  15. -- PHP Version: 7.4.2
  16. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  17. SET AUTOCOMMIT = 0;
  18. START TRANSACTION;
  19. SET time_zone = "+00:00";
  20. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  21. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  22. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  23. /*!40101 SET NAMES utf8mb4 */;
  24. --
  25. -- Database: `shop`
  26. --
  27. -- --------------------------------------------------------
  28. --
  29. -- Table structure for table `customer_packages`
  30. --
  31. CREATE TABLE `customer_packages` (
  32. `id` int(11) NOT NULL,
  33. `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  34. `amount` double(28,2) DEFAULT NULL,
  35. `product_upload` int(11) DEFAULT NULL,
  36. `logo` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  37. `created_at` timestamp NULL DEFAULT NULL,
  38. `updated_at` timestamp NULL DEFAULT NULL
  39. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  40. --
  41. -- Indexes for dumped tables
  42. --
  43. --
  44. -- Indexes for table `customer_packages`
  45. --
  46. ALTER TABLE `customer_packages`
  47. ADD PRIMARY KEY (`id`);
  48. --
  49. -- AUTO_INCREMENT for dumped tables
  50. --
  51. --
  52. -- AUTO_INCREMENT for table `customer_packages`
  53. --
  54. ALTER TABLE `customer_packages`
  55. MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
  56. COMMIT;
  57. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  58. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  59. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
  60. -- phpMyAdmin SQL Dump
  61. -- version 5.0.1
  62. -- https://www.phpmyadmin.net/
  63. --
  64. -- Host: 127.0.0.1
  65. -- Generation Time: May 12, 2020 at 01:32 PM
  66. -- Server version: 10.4.11-MariaDB
  67. -- PHP Version: 7.4.2
  68. SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
  69. SET AUTOCOMMIT = 0;
  70. START TRANSACTION;
  71. SET time_zone = "+00:00";
  72. /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
  73. /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
  74. /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
  75. /*!40101 SET NAMES utf8mb4 */;
  76. --
  77. -- Database: `shop`
  78. --
  79. -- --------------------------------------------------------
  80. --
  81. -- Table structure for table `customer_products`
  82. --
  83. CREATE TABLE `customer_products` (
  84. `id` int(11) NOT NULL,
  85. `name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  86. `published` int(1) NOT NULL DEFAULT 0,
  87. `status` int(1) NOT NULL DEFAULT 0,
  88. `added_by` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  89. `user_id` int(11) DEFAULT NULL,
  90. `category_id` int(11) DEFAULT NULL,
  91. `subcategory_id` int(11) DEFAULT NULL,
  92. `subsubcategory_id` int(11) DEFAULT NULL,
  93. `brand_id` int(11) DEFAULT NULL,
  94. `photos` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  95. `thumbnail_img` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  96. `conditon` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
  97. `location` text COLLATE utf8_unicode_ci DEFAULT NULL,
  98. `video_provider` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
  99. `video_link` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  100. `unit` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  101. `tags` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
  102. `description` mediumtext COLLATE utf8_unicode_ci DEFAULT NULL,
  103. `unit_price` double(28,2) DEFAULT 0.00,
  104. `meta_title` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  105. `meta_description` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
  106. `meta_img` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
  107. `pdf` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  108. `slug` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
  109. `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  110. `updated_at` timestamp NOT NULL DEFAULT current_timestamp()
  111. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  112. --
  113. -- Indexes for table `customer_products`
  114. --
  115. ALTER TABLE `customer_products`
  116. ADD PRIMARY KEY (`id`);
  117. --
  118. -- AUTO_INCREMENT for dumped tables
  119. --
  120. --
  121. -- AUTO_INCREMENT for table `customer_products`
  122. --
  123. ALTER TABLE `customer_products`
  124. MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  125. COMMIT;
  126. /*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
  127. /*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
  128. /*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;