v40.sql 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. ALTER TABLE `product_stocks` ADD `image` INT NULL DEFAULT NULL AFTER `qty`;
  2. CREATE TABLE `blogs` (
  3. `id` bigint(20) UNSIGNED NOT NULL,
  4. `category_id` int(11) NOT NULL,
  5. `title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  6. `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  7. `short_description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  8. `description` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  9. `banner` int(11) DEFAULT NULL,
  10. `meta_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  11. `meta_img` int(11) DEFAULT NULL,
  12. `meta_description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  13. `meta_keywords` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
  14. `status` int(1) NOT NULL DEFAULT 1,
  15. `created_at` timestamp NULL DEFAULT NULL,
  16. `updated_at` timestamp NULL DEFAULT NULL,
  17. `deleted_at` timestamp NULL DEFAULT NULL
  18. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  19. ALTER TABLE `blogs`
  20. ADD PRIMARY KEY (`id`);
  21. ALTER TABLE `blogs`
  22. MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  23. CREATE TABLE `blog_categories` (
  24. `id` bigint(20) UNSIGNED NOT NULL,
  25. `category_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  26. `slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
  27. `created_at` timestamp NULL DEFAULT NULL,
  28. `updated_at` timestamp NULL DEFAULT NULL,
  29. `deleted_at` timestamp NULL DEFAULT NULL
  30. ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
  31. ALTER TABLE `blog_categories`
  32. ADD PRIMARY KEY (`id`);
  33. ALTER TABLE `blog_categories`
  34. MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
  35. INSERT INTO `business_settings` (`type`, `value`, `created_at`, `updated_at`) VALUES
  36. ('header_menu_labels', '[\"Home\",\"Flash Sale\",\"Blogs\",\"All Brands\",\"All Categories\"]', '2021-02-16 08:43:11', '2021-02-16 08:52:18'),
  37. ('header_menu_links', '[\"http:\\/\\/domain.com\",\"http:\\/\\/domain.com\\/flash-deals\",\"http:\\/\\/domain.com\\/blog\",\"http:\\/\\/domain.com\\/brands\",\"http:\\/\\/domain.com\\/categories\"]', '2021-02-16 08:43:11', '2021-02-18 07:20:04');
  38. UPDATE `business_settings` SET `value` = '4.0' WHERE `business_settings`.`type` = 'current_version';
  39. COMMIT;