v612.sql 722 B

12345678910111213141516171819202122
  1. CREATE TABLE `product_queries` (
  2. `id` bigint(20) UNSIGNED NOT NULL,
  3. `customer_id` int(11) NOT NULL,
  4. `seller_id` int(11) NOT NULL,
  5. `product_id` int(11) NOT NULL,
  6. `question` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
  7. `reply` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  8. `created_at` timestamp NULL DEFAULT NULL,
  9. `updated_at` timestamp NULL DEFAULT NULL
  10. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  11. ALTER TABLE `product_queries`
  12. ADD PRIMARY KEY (`id`);
  13. ALTER TABLE `product_queries`
  14. MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
  15. UPDATE `business_settings` SET `value` = '6.1.2' WHERE `business_settings`.`type` = 'current_version';
  16. COMMIT;