Nuevos cambios hechos de diseño
This commit is contained in:
5
desarrollo2/sqlupdates/v15.sql
Normal file
5
desarrollo2/sqlupdates/v15.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
UPDATE `business_settings` SET `value` = '1.5' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'instamojo_payment', '0', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), (NULL, 'instamojo_sandbox', '1', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), (NULL, 'razorpay', '0', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
|
||||
|
||||
ALTER TABLE `sellers` ADD `instamojo_status` INT(1) NOT NULL DEFAULT '0' AFTER `stripe_secret`, ADD `instamojo_api_key` VARCHAR(255) NULL DEFAULT NULL AFTER `instamojo_status`, ADD `instamojo_token` VARCHAR(255) NULL DEFAULT NULL AFTER `instamojo_api_key`, ADD `razorpay_status` INT(1) NOT NULL DEFAULT '0' AFTER `instamojo_token`, ADD `razorpay_api_key` VARCHAR(255) NULL DEFAULT NULL AFTER `razorpay_status`, ADD `razorpay_secret` VARCHAR(255) NULL DEFAULT NULL AFTER `razorpay_api_key`;
|
||||
23
desarrollo2/sqlupdates/v16.sql
Normal file
23
desarrollo2/sqlupdates/v16.sql
Normal file
@@ -0,0 +1,23 @@
|
||||
UPDATE `business_settings` SET `value` = '1.6' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'paystack', '0', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
|
||||
|
||||
ALTER TABLE `sellers` ADD `paystack_status` INT(1) NOT NULL DEFAULT '0' AFTER `razorpay_secret`, ADD `paystack_public_key` VARCHAR(255) NULL DEFAULT NULL AFTER `paystack_status`, ADD `paystack_secret_key` VARCHAR(255) NULL DEFAULT NULL AFTER `paystack_public_key`;
|
||||
|
||||
ALTER TABLE `tickets` ADD `files` TEXT NULL DEFAULT NULL AFTER `details`, ADD `status` VARCHAR(10) NOT NULL DEFAULT 'pending' AFTER `files`;
|
||||
|
||||
ALTER TABLE `tickets` ADD `code` INT(6) NOT NULL AFTER `id`;
|
||||
|
||||
ALTER TABLE `ticket_replies` ADD `files` TEXT NULL DEFAULT NULL AFTER `reply`;
|
||||
|
||||
ALTER TABLE `brands` ADD `slug` VARCHAR(255) NULL DEFAULT NULL AFTER `top`, ADD `meta_title` VARCHAR(255) NULL DEFAULT NULL AFTER `slug`, ADD `meta_description` TEXT NULL DEFAULT NULL AFTER `meta_title`;
|
||||
|
||||
ALTER TABLE `categories` CHANGE `updated_at` `updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP;
|
||||
|
||||
ALTER TABLE `categories` ADD `slug` VARCHAR(255) NULL DEFAULT NULL AFTER `top`, ADD `meta_title` VARCHAR(255) NULL DEFAULT NULL AFTER `slug`, ADD `meta_description` TEXT NULL DEFAULT NULL AFTER `meta_title`;
|
||||
|
||||
ALTER TABLE `sub_categories` ADD `slug` VARCHAR(255) NULL DEFAULT NULL AFTER `category_id`, ADD `meta_title` VARCHAR(255) NULL DEFAULT NULL AFTER `slug`, ADD `meta_description` TEXT NULL DEFAULT NULL AFTER `meta_title`;
|
||||
|
||||
ALTER TABLE `sub_sub_categories` ADD `slug` VARCHAR(255) NULL DEFAULT NULL AFTER `brands`, ADD `meta_title` VARCHAR(255) NULL DEFAULT NULL AFTER `slug`, ADD `meta_description` TEXT NULL DEFAULT NULL AFTER `meta_title`;
|
||||
|
||||
ALTER TABLE `shops` ADD `meta_title` VARCHAR(255) NULL DEFAULT NULL AFTER `slug`, ADD `meta_description` TEXT NULL DEFAULT NULL AFTER `meta_title`;
|
||||
56
desarrollo2/sqlupdates/v17.sql
Normal file
56
desarrollo2/sqlupdates/v17.sql
Normal file
@@ -0,0 +1,56 @@
|
||||
UPDATE `business_settings` SET `value` = '1.7' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'pickup_point', '0', current_timestamp(), current_timestamp());
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'maintenance_mode', '0', current_timestamp(), current_timestamp());
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'voguepay', '0', current_timestamp(), current_timestamp());
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'voguepay_sandbox', '0', current_timestamp(), current_timestamp());
|
||||
|
||||
CREATE TABLE `pickup_points` (
|
||||
`id` int(11) NOT NULL,
|
||||
`staff_id` int(11) NOT NULL,
|
||||
`name` varchar(255) NOT NULL,
|
||||
`address` text NOT NULL,
|
||||
`phone` varchar(15) NOT NULL,
|
||||
`pick_up_status` int(1) DEFAULT NULL,
|
||||
`cash_on_pickup_status` int(1) DEFAULT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
ALTER TABLE `pickup_points` ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `pickup_points` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
ALTER TABLE `tickets` ADD `client_viewed` INT(1) NOT NULL DEFAULT '0' AFTER `viewed`;
|
||||
|
||||
ALTER TABLE `sellers` ADD `voguepay_status` INT(1) NOT NULL DEFAULT '0' AFTER `paystack_secret_key`;
|
||||
|
||||
ALTER TABLE `sellers` ADD `voguepay_merchand_id` VARCHAR(255) NULL DEFAULT NULL AFTER `voguepay_status`;
|
||||
|
||||
CREATE TABLE `seller_withdraw_requests` (
|
||||
`id` int(11) NOT NULL,
|
||||
`user_id` int(11) DEFAULT NULL,
|
||||
`amount` double(8,2) DEFAULT NULL,
|
||||
`message` longtext DEFAULT NULL,
|
||||
`status` int(1) DEFAULT NULL,
|
||||
`viewed` int(1) DEFAULT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
ALTER TABLE `seller_withdraw_requests` ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `seller_withdraw_requests` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
ALTER TABLE `reviews` ADD `viewed` INT(1) NOT NULL DEFAULT '0' AFTER `status`;
|
||||
|
||||
ALTER TABLE `orders` ADD `delivery_viewed` INT(1) NOT NULL DEFAULT '0' AFTER `viewed`;
|
||||
|
||||
ALTER TABLE `orders` ADD `payment_status_viewed` INT(1) NULL DEFAULT '0' AFTER `delivery_viewed`;
|
||||
|
||||
ALTER TABLE `order_details` ADD `shipping_type` VARCHAR(255) NULL DEFAULT NULL AFTER `delivery_status`;
|
||||
|
||||
ALTER TABLE `order_details` ADD `pickup_point_id` INT(11) NULL DEFAULT NULL AFTER `shipping_type`;
|
||||
41
desarrollo2/sqlupdates/v18.sql
Normal file
41
desarrollo2/sqlupdates/v18.sql
Normal file
@@ -0,0 +1,41 @@
|
||||
UPDATE `business_settings` SET `value` = '1.8' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
CREATE TABLE `conversations`
|
||||
( `id` int(11) NOT NULL,
|
||||
`sender_id` int(11) NOT NULL,
|
||||
`receiver_id` int(11) NOT NULL,
|
||||
`title` varchar(1000) COLLATE utf32_unicode_ci DEFAULT NULL,
|
||||
`sender_viewed` int(11) NOT NULL DEFAULT 1,
|
||||
`receiver_viewed` int(11) NOT NULL DEFAULT 0,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;
|
||||
|
||||
ALTER TABLE `conversations` ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `conversations` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
CREATE TABLE `messages`
|
||||
( `id` int(11) NOT NULL,
|
||||
`conversation_id` int(11) NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`message` text COLLATE utf32_unicode_ci DEFAULT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;
|
||||
|
||||
ALTER TABLE `messages` ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `messages` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
ALTER TABLE `categories` ADD `commision_rate` FLOAT(8,2) NOT NULL DEFAULT 0 AFTER `name`;
|
||||
|
||||
ALTER TABLE `sliders` ADD `link` VARCHAR(255) NULL DEFAULT NULL AFTER `published`;
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'category_wise_commission', '0', current_timestamp(), current_timestamp());
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'conversation_system', '0', current_timestamp(), current_timestamp());
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'guest_checkout_active', '1', current_timestamp(), current_timestamp());
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'facebook_pixel', '0', current_timestamp(), current_timestamp());
|
||||
7
desarrollo2/sqlupdates/v19.sql
Normal file
7
desarrollo2/sqlupdates/v19.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
|
||||
UPDATE `business_settings` SET `value` = '1.9' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
ALTER TABLE `flash_deals` ADD `featured` INT(1) NOT NULL DEFAULT '0' AFTER `status`, ADD `background_color` VARCHAR(255) NULL DEFAULT NULL AFTER `featured`, ADD `text_color` VARCHAR(255) NULL DEFAULT NULL AFTER `background_color`, ADD `banner` VARCHAR(255) NULL DEFAULT NULL AFTER `text_color`, ADD `slug` VARCHAR(255) NULL DEFAULT NULL AFTER `banner`;
|
||||
|
||||
|
||||
COMMIT;
|
||||
213
desarrollo2/sqlupdates/v20.sql
Normal file
213
desarrollo2/sqlupdates/v20.sql
Normal file
@@ -0,0 +1,213 @@
|
||||
UPDATE `business_settings` SET `value` = '2.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.9.0.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Mar 08, 2020 at 11:37 AM
|
||||
-- Server version: 10.3.16-MariaDB
|
||||
-- PHP Version: 7.3.7
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `shop`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `addons`
|
||||
--
|
||||
|
||||
CREATE TABLE `addons` (
|
||||
`id` int(11) NOT NULL,
|
||||
`name` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL,
|
||||
`unique_identifier` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL,
|
||||
`version` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL,
|
||||
`activated` int(1) NOT NULL DEFAULT 1,
|
||||
`image` varchar(1000) COLLATE utf32_unicode_ci DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `addons`
|
||||
--
|
||||
ALTER TABLE `addons`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `addons`
|
||||
--
|
||||
ALTER TABLE `addons`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=10;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.9.0.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Mar 08, 2020 at 11:38 AM
|
||||
-- Server version: 10.3.16-MariaDB
|
||||
-- PHP Version: 7.3.7
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `shop`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `attributes`
|
||||
--
|
||||
|
||||
CREATE TABLE `attributes` (
|
||||
`id` int(11) NOT NULL,
|
||||
`name` varchar(255) COLLATE utf32_unicode_ci DEFAULT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf32 COLLATE=utf32_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `attributes`
|
||||
--
|
||||
|
||||
INSERT INTO `attributes` (`id`, `name`, `created_at`, `updated_at`) VALUES
|
||||
(1, 'Size', '2020-02-24 05:55:07', '2020-02-24 05:55:07'),
|
||||
(2, 'Fabric', '2020-02-24 05:55:13', '2020-02-24 05:55:13');
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `attributes`
|
||||
--
|
||||
ALTER TABLE `attributes`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `attributes`
|
||||
--
|
||||
ALTER TABLE `attributes`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.9.0.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Mar 08, 2020 at 11:43 AM
|
||||
-- Server version: 10.3.16-MariaDB
|
||||
-- PHP Version: 7.3.7
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `shop`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `product_stocks`
|
||||
--
|
||||
|
||||
DROP TABLE IF EXISTS `product_stocks`;
|
||||
CREATE TABLE `product_stocks` (
|
||||
`id` int(11) NOT NULL,
|
||||
`product_id` int(11) NOT NULL,
|
||||
`variant` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`sku` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`price` double(10,2) NOT NULL DEFAULT 0.00,
|
||||
`qty` int(11) NOT NULL DEFAULT 0,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `product_stocks`
|
||||
--
|
||||
ALTER TABLE `product_stocks`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `product_stocks`
|
||||
--
|
||||
ALTER TABLE `product_stocks`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
|
||||
|
||||
ALTER TABLE `products` ADD `variant_product` INT(1) NOT NULL DEFAULT '0' AFTER `purchase_price`, ADD `attributes` VARCHAR(1000) NULL DEFAULT '[]' AFTER `variant_product`;
|
||||
|
||||
ALTER TABLE `users` ADD `referred_by` INT NULL DEFAULT NULL AFTER `id`;
|
||||
|
||||
ALTER TABLE `users` ADD `referral_code` VARCHAR(255) NULL DEFAULT NULL AFTER `balance`;
|
||||
3
desarrollo2/sqlupdates/v21.sql
Normal file
3
desarrollo2/sqlupdates/v21.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '2.1' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v22.sql
Normal file
3
desarrollo2/sqlupdates/v22.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '2.2' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v23.sql
Normal file
3
desarrollo2/sqlupdates/v23.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '2.3' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
9
desarrollo2/sqlupdates/v24.sql
Normal file
9
desarrollo2/sqlupdates/v24.sql
Normal file
@@ -0,0 +1,9 @@
|
||||
ALTER TABLE `products` CHANGE `brand_id` `brand_id` INT(11) NULL DEFAULT NULL;
|
||||
|
||||
ALTER TABLE `products` CHANGE `subsubcategory_id` `subsubcategory_id` INT(11) NULL DEFAULT NULL;
|
||||
|
||||
ALTER TABLE `orders` ADD `commission_calculated` INT NOT NULL DEFAULT '0' AFTER `payment_status_viewed`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '2.4' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
161
desarrollo2/sqlupdates/v25.sql
Normal file
161
desarrollo2/sqlupdates/v25.sql
Normal file
@@ -0,0 +1,161 @@
|
||||
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`;
|
||||
|
||||
ALTER TABLE `sellers` ADD `bank_payment_status` INT NOT NULL DEFAULT '0' AFTER `bank_routing_no`;
|
||||
|
||||
ALTER TABLE `payments` ADD `txn_code` VARCHAR(100) NULL DEFAULT NULL AFTER `payment_method`;
|
||||
|
||||
ALTER TABLE `products` ADD `barcode` VARCHAR(255) NULL DEFAULT NULL AFTER `rating`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '2.5' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
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`;
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'classified_product', '1', current_timestamp(), current_timestamp());
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 5.0.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: May 12, 2020 at 01:31 PM
|
||||
-- Server version: 10.4.11-MariaDB
|
||||
-- PHP Version: 7.4.2
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `shop`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `customer_packages`
|
||||
--
|
||||
|
||||
CREATE TABLE `customer_packages` (
|
||||
`id` int(11) NOT NULL,
|
||||
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`amount` double(28,2) DEFAULT NULL,
|
||||
`product_upload` int(11) DEFAULT NULL,
|
||||
`logo` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `customer_packages`
|
||||
--
|
||||
ALTER TABLE `customer_packages`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `customer_packages`
|
||||
--
|
||||
ALTER TABLE `customer_packages`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 5.0.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: May 12, 2020 at 01:32 PM
|
||||
-- Server version: 10.4.11-MariaDB
|
||||
-- PHP Version: 7.4.2
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `shop`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `customer_products`
|
||||
--
|
||||
|
||||
CREATE TABLE `customer_products` (
|
||||
`id` int(11) NOT NULL,
|
||||
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`published` int(1) NOT NULL DEFAULT 0,
|
||||
`status` int(1) NOT NULL DEFAULT 0,
|
||||
`added_by` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`user_id` int(11) DEFAULT NULL,
|
||||
`category_id` int(11) DEFAULT NULL,
|
||||
`subcategory_id` int(11) DEFAULT NULL,
|
||||
`subsubcategory_id` int(11) DEFAULT NULL,
|
||||
`brand_id` int(11) DEFAULT NULL,
|
||||
`photos` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`thumbnail_img` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`conditon` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`location` text COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`video_provider` varchar(100) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`video_link` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`unit` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`tags` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`description` mediumtext COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`unit_price` double(28,2) DEFAULT 0.00,
|
||||
`meta_title` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`meta_description` varchar(500) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`meta_img` varchar(150) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`pdf` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`slug` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
|
||||
--
|
||||
-- Indexes for table `customer_products`
|
||||
--
|
||||
ALTER TABLE `customer_products`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `customer_products`
|
||||
--
|
||||
ALTER TABLE `customer_products`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=4;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
3
desarrollo2/sqlupdates/v26.sql
Normal file
3
desarrollo2/sqlupdates/v26.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '2.6' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
487
desarrollo2/sqlupdates/v27.sql
Normal file
487
desarrollo2/sqlupdates/v27.sql
Normal file
@@ -0,0 +1,487 @@
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.9.0.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Dec 30, 2019 at 08:43 AM
|
||||
-- Server version: 10.3.16-MariaDB
|
||||
-- PHP Version: 7.3.7
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `matgaar_api`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `app_settings`
|
||||
--
|
||||
|
||||
CREATE TABLE `app_settings` (
|
||||
`id` int(11) UNSIGNED NOT NULL,
|
||||
`name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`logo` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`currency_id` int(11) DEFAULT NULL,
|
||||
`currency_format` char(10) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`facebook` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`twitter` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`instagram` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`youtube` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`google_plus` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `app_settings`
|
||||
--
|
||||
|
||||
INSERT INTO `app_settings` (`id`, `name`, `logo`, `currency_id`, `currency_format`, `facebook`, `twitter`, `instagram`, `youtube`, `google_plus`, `created_at`, `updated_at`) VALUES
|
||||
(1, 'MATGGAR', 'uploads/logo/matggar.png', 1, 'symbol', 'https://facebook.com', 'https://twitter.com', 'https://instagram.com', 'https://youtube.com', 'https://google.com', '2019-08-04 16:39:15', '2019-08-04 16:39:18');
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `app_settings`
|
||||
--
|
||||
ALTER TABLE `app_settings`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `app_settings`
|
||||
--
|
||||
ALTER TABLE `app_settings`
|
||||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.9.0.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Dec 29, 2019 at 02:44 PM
|
||||
-- Server version: 10.3.16-MariaDB
|
||||
-- PHP Version: 7.3.7
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `matgaar_api`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `carts`
|
||||
--
|
||||
|
||||
CREATE TABLE `carts` (
|
||||
`id` int(11) UNSIGNED NOT NULL,
|
||||
`user_id` int(11) DEFAULT NULL,
|
||||
`product_id` int(11) DEFAULT NULL,
|
||||
`variation` text COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`price` double(8,2) DEFAULT NULL,
|
||||
`tax` double(8,2) DEFAULT NULL,
|
||||
`shipping_cost` double(8,2) DEFAULT NULL,
|
||||
`quantity` int(11) NOT NULL DEFAULT 0,
|
||||
`created_at` timestamp NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
|
||||
--
|
||||
-- Indexes for table `carts`
|
||||
--
|
||||
ALTER TABLE `carts`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `carts`
|
||||
--
|
||||
ALTER TABLE `carts`
|
||||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=47;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.9.0.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Nov 03, 2019 at 01:40 PM
|
||||
-- Server version: 10.3.16-MariaDB
|
||||
-- PHP Version: 7.3.7
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `ecommerce_api`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `oauth_access_tokens`
|
||||
--
|
||||
|
||||
CREATE TABLE `oauth_access_tokens` (
|
||||
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`user_id` int(11) DEFAULT NULL,
|
||||
`client_id` int(10) UNSIGNED NOT NULL,
|
||||
`name` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`scopes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`revoked` tinyint(1) NOT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
`expires_at` datetime DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `oauth_access_tokens`
|
||||
--
|
||||
|
||||
INSERT INTO `oauth_access_tokens` (`id`, `user_id`, `client_id`, `name`, `scopes`, `revoked`, `created_at`, `updated_at`, `expires_at`) VALUES
|
||||
('125ce8289850f80d9fea100325bf892fbd0deba1f87dbfc2ab81fb43d57377ec24ed65f7dc560e46', 1, 1, 'Personal Access Token', '[]', 0, '2019-07-30 04:51:13', '2019-07-30 04:51:13', '2020-07-30 10:51:13'),
|
||||
('293d2bb534220c070c4e90d25b5509965d23d3ddbc05b1e29fb4899ae09420ff112dbccab1c6f504', 1, 1, 'Personal Access Token', '[]', 1, '2019-08-04 06:00:04', '2019-08-04 06:00:04', '2020-08-04 12:00:04'),
|
||||
('5363e91c7892acdd6417aa9c7d4987d83568e229befbd75be64282dbe8a88147c6c705e06c1fb2bf', 1, 1, 'Personal Access Token', '[]', 0, '2019-07-13 06:44:28', '2019-07-13 06:44:28', '2020-07-13 12:44:28'),
|
||||
('681b4a4099fac5e12517307b4027b54df94cbaf0cbf6b4bf496534c94f0ccd8a79dd6af9742d076b', 1, 1, 'Personal Access Token', '[]', 1, '2019-08-04 07:23:06', '2019-08-04 07:23:06', '2020-08-04 13:23:06'),
|
||||
('6d229e3559e568df086c706a1056f760abc1370abe74033c773490581a042442154afa1260c4b6f0', 1, 1, 'Personal Access Token', '[]', 1, '2019-08-04 07:32:12', '2019-08-04 07:32:12', '2020-08-04 13:32:12'),
|
||||
('6efc0f1fc3843027ea1ea7cd35acf9c74282f0271c31d45a164e7b27025a315d31022efe7bb94aaa', 1, 1, 'Personal Access Token', '[]', 0, '2019-08-08 02:35:26', '2019-08-08 02:35:26', '2020-08-08 08:35:26'),
|
||||
('7745b763da15a06eaded371330072361b0524c41651cf48bf76fc1b521a475ece78703646e06d3b0', 1, 1, 'Personal Access Token', '[]', 1, '2019-08-04 07:29:44', '2019-08-04 07:29:44', '2020-08-04 13:29:44'),
|
||||
('815b625e239934be293cd34479b0f766bbc1da7cc10d464a2944ddce3a0142e943ae48be018ccbd0', 1, 1, 'Personal Access Token', '[]', 1, '2019-07-22 02:07:47', '2019-07-22 02:07:47', '2020-07-22 08:07:47'),
|
||||
('8921a4c96a6d674ac002e216f98855c69de2568003f9b4136f6e66f4cb9545442fb3e37e91a27cad', 1, 1, 'Personal Access Token', '[]', 1, '2019-08-04 06:05:05', '2019-08-04 06:05:05', '2020-08-04 12:05:05'),
|
||||
('8d8b85720304e2f161a66564cec0ecd50d70e611cc0efbf04e409330086e6009f72a39ce2191f33a', 1, 1, 'Personal Access Token', '[]', 1, '2019-08-04 06:44:35', '2019-08-04 06:44:35', '2020-08-04 12:44:35'),
|
||||
('bcaaebdead4c0ef15f3ea6d196fd80749d309e6db8603b235e818cb626a5cea034ff2a55b66e3e1a', 1, 1, 'Personal Access Token', '[]', 1, '2019-08-04 07:14:32', '2019-08-04 07:14:32', '2020-08-04 13:14:32'),
|
||||
('c25417a5c728073ca8ba57058ded43d496a9d2619b434d2a004dd490a64478c08bc3e06ffc1be65d', 1, 1, 'Personal Access Token', '[]', 1, '2019-07-30 01:45:31', '2019-07-30 01:45:31', '2020-07-30 07:45:31'),
|
||||
('c7423d85b2b5bdc5027cb283be57fa22f5943cae43f60b0ed27e6dd198e46f25e3501b3081ed0777', 1, 1, 'Personal Access Token', '[]', 1, '2019-08-05 05:02:59', '2019-08-05 05:02:59', '2020-08-05 11:02:59'),
|
||||
('e76f19dbd5c2c4060719fb1006ac56116fd86f7838b4bf74e2c0a0ac9696e724df1e517dbdb357f4', 1, 1, 'Personal Access Token', '[]', 1, '2019-07-15 02:53:40', '2019-07-15 02:53:40', '2020-07-15 08:53:40'),
|
||||
('ed7c269dd6f9a97750a982f62e0de54749be6950e323cdfef892a1ec93f8ddbacf9fe26e6a42180e', 1, 1, 'Personal Access Token', '[]', 1, '2019-07-13 06:36:45', '2019-07-13 06:36:45', '2020-07-13 12:36:45'),
|
||||
('f6d1475bc17a27e389000d3df4da5c5004ce7610158b0dd414226700c0f6db48914637b4c76e1948', 1, 1, 'Personal Access Token', '[]', 1, '2019-08-04 07:22:01', '2019-08-04 07:22:01', '2020-08-04 13:22:01'),
|
||||
('f85e4e444fc954430170c41779a4238f84cd6fed905f682795cd4d7b6a291ec5204a10ac0480eb30', 1, 1, 'Personal Access Token', '[]', 1, '2019-07-30 06:38:49', '2019-07-30 06:38:49', '2020-07-30 12:38:49'),
|
||||
('f8bf983a42c543b99128296e4bc7c2d17a52b5b9ef69670c629b93a653c6a4af27be452e0c331f79', 1, 1, 'Personal Access Token', '[]', 1, '2019-08-04 07:28:55', '2019-08-04 07:28:55', '2020-08-04 13:28:55');
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `oauth_access_tokens`
|
||||
--
|
||||
ALTER TABLE `oauth_access_tokens`
|
||||
ADD PRIMARY KEY (`id`),
|
||||
ADD KEY `oauth_access_tokens_user_id_index` (`user_id`);
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.9.0.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Nov 03, 2019 at 01:40 PM
|
||||
-- Server version: 10.3.16-MariaDB
|
||||
-- PHP Version: 7.3.7
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `ecommerce_api`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `oauth_auth_codes`
|
||||
--
|
||||
|
||||
CREATE TABLE `oauth_auth_codes` (
|
||||
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`client_id` int(10) UNSIGNED NOT NULL,
|
||||
`scopes` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`revoked` tinyint(1) NOT NULL,
|
||||
`expires_at` datetime DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `oauth_auth_codes`
|
||||
--
|
||||
ALTER TABLE `oauth_auth_codes`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.9.0.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Nov 03, 2019 at 01:41 PM
|
||||
-- Server version: 10.3.16-MariaDB
|
||||
-- PHP Version: 7.3.7
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `ecommerce_api`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `oauth_clients`
|
||||
--
|
||||
|
||||
CREATE TABLE `oauth_clients` (
|
||||
`id` int(10) UNSIGNED NOT NULL,
|
||||
`user_id` int(11) DEFAULT NULL,
|
||||
`name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`secret` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`redirect` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`personal_access_client` tinyint(1) NOT NULL,
|
||||
`password_client` tinyint(1) NOT NULL,
|
||||
`revoked` tinyint(1) NOT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `oauth_clients`
|
||||
--
|
||||
|
||||
INSERT INTO `oauth_clients` (`id`, `user_id`, `name`, `secret`, `redirect`, `personal_access_client`, `password_client`, `revoked`, `created_at`, `updated_at`) VALUES
|
||||
(1, NULL, 'Laravel Personal Access Client', 'eR2y7WUuem28ugHKppFpmss7jPyOHZsMkQwBo1Jj', 'http://localhost', 1, 0, 0, '2019-07-13 06:17:34', '2019-07-13 06:17:34'),
|
||||
(2, NULL, 'Laravel Password Grant Client', 'WLW2Ol0GozbaXEnx1NtXoweYPuKEbjWdviaUgw77', 'http://localhost', 0, 1, 0, '2019-07-13 06:17:34', '2019-07-13 06:17:34');
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `oauth_clients`
|
||||
--
|
||||
ALTER TABLE `oauth_clients`
|
||||
ADD PRIMARY KEY (`id`),
|
||||
ADD KEY `oauth_clients_user_id_index` (`user_id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `oauth_clients`
|
||||
--
|
||||
ALTER TABLE `oauth_clients`
|
||||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.9.0.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Nov 03, 2019 at 01:41 PM
|
||||
-- Server version: 10.3.16-MariaDB
|
||||
-- PHP Version: 7.3.7
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `ecommerce_api`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `oauth_personal_access_clients`
|
||||
--
|
||||
|
||||
CREATE TABLE `oauth_personal_access_clients` (
|
||||
`id` int(10) UNSIGNED NOT NULL,
|
||||
`client_id` int(10) UNSIGNED NOT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Dumping data for table `oauth_personal_access_clients`
|
||||
--
|
||||
|
||||
INSERT INTO `oauth_personal_access_clients` (`id`, `client_id`, `created_at`, `updated_at`) VALUES
|
||||
(1, 1, '2019-07-13 06:17:34', '2019-07-13 06:17:34');
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `oauth_personal_access_clients`
|
||||
--
|
||||
ALTER TABLE `oauth_personal_access_clients`
|
||||
ADD PRIMARY KEY (`id`),
|
||||
ADD KEY `oauth_personal_access_clients_client_id_index` (`client_id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `oauth_personal_access_clients`
|
||||
--
|
||||
ALTER TABLE `oauth_personal_access_clients`
|
||||
MODIFY `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.9.0.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Nov 03, 2019 at 01:41 PM
|
||||
-- Server version: 10.3.16-MariaDB
|
||||
-- PHP Version: 7.3.7
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `ecommerce_api`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `oauth_refresh_tokens`
|
||||
--
|
||||
|
||||
CREATE TABLE `oauth_refresh_tokens` (
|
||||
`id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`access_token_id` varchar(100) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`revoked` tinyint(1) NOT NULL,
|
||||
`expires_at` datetime DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `oauth_refresh_tokens`
|
||||
--
|
||||
ALTER TABLE `oauth_refresh_tokens`
|
||||
ADD PRIMARY KEY (`id`),
|
||||
ADD KEY `oauth_refresh_tokens_access_token_id_index` (`access_token_id`);
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
|
||||
|
||||
UPDATE `business_settings` SET `value` = '2.7' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
11
desarrollo2/sqlupdates/v28.sql
Normal file
11
desarrollo2/sqlupdates/v28.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
ALTER TABLE `order_details` ADD `product_referral_code` VARCHAR(255) NULL DEFAULT NULL AFTER `pickup_point_id`;
|
||||
|
||||
ALTER TABLE `categories` ADD `digital` INT(1) NOT NULL DEFAULT '0' AFTER `top`;
|
||||
|
||||
ALTER TABLE `products` ADD `digital` INT(1) NOT NULL DEFAULT '0' AFTER `barcode`, ADD `file_name` VARCHAR(255) NULL DEFAULT NULL AFTER `digital`, ADD `file_path` VARCHAR(255) NULL DEFAULT NULL AFTER `file_name`;
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'pos_activation_for_seller', '1', current_timestamp(), current_timestamp());
|
||||
|
||||
UPDATE `business_settings` SET `value` = '2.8' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
156
desarrollo2/sqlupdates/v29.sql
Normal file
156
desarrollo2/sqlupdates/v29.sql
Normal file
@@ -0,0 +1,156 @@
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'shipping_type', 'product_wise_shipping', current_timestamp(), current_timestamp());
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'flat_rate_shipping_cost', '0', current_timestamp(), current_timestamp());
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'shipping_cost_admin', '0', current_timestamp(), current_timestamp());
|
||||
|
||||
ALTER TABLE `shops` ADD `shipping_cost` DOUBLE(8,2) NOT NULL DEFAULT '0' AFTER `pick_up_point_id`;
|
||||
|
||||
ALTER TABLE `products` CHANGE `shipping_type` `shipping_type` VARCHAR(20) CHARACTER SET latin1 COLLATE latin1_swedish_ci NULL DEFAULT 'flat_rate';
|
||||
|
||||
ALTER TABLE `orders` CHANGE `delivery_viewed` `delivery_viewed` INT(1) NOT NULL DEFAULT '1';
|
||||
|
||||
ALTER TABLE `orders` CHANGE `payment_status_viewed` `payment_status_viewed` INT(1) NULL DEFAULT '1';
|
||||
|
||||
ALTER TABLE `countries` ADD `status` INT(1) NOT NULL DEFAULT '1' AFTER `name`;
|
||||
|
||||
ALTER TABLE `countries` ADD `created_at` TIMESTAMP NULL DEFAULT NULL AFTER `status`, ADD `updated_at` TIMESTAMP NULL DEFAULT NULL AFTER `created_at`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '2.9' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.9.0.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Jul 01, 2020 at 03:47 PM
|
||||
-- Server version: 10.3.16-MariaDB
|
||||
-- PHP Version: 7.3.7
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `shop_demo`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `addresses`
|
||||
--
|
||||
|
||||
CREATE TABLE `addresses` (
|
||||
`id` int(11) NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`address` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`country` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`city` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`postal_code` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`phone` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`set_default` int(1) NOT NULL DEFAULT 0,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `addresses`
|
||||
--
|
||||
ALTER TABLE `addresses`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `addresses`
|
||||
--
|
||||
ALTER TABLE `addresses`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
|
||||
|
||||
-- phpMyAdmin SQL Dump
|
||||
-- version 4.9.0.1
|
||||
-- https://www.phpmyadmin.net/
|
||||
--
|
||||
-- Host: 127.0.0.1
|
||||
-- Generation Time: Jul 01, 2020 at 03:48 PM
|
||||
-- Server version: 10.3.16-MariaDB
|
||||
-- PHP Version: 7.3.7
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
SET AUTOCOMMIT = 0;
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
|
||||
/*!40101 SET NAMES utf8mb4 */;
|
||||
|
||||
--
|
||||
-- Database: `shop_demo`
|
||||
--
|
||||
|
||||
-- --------------------------------------------------------
|
||||
|
||||
--
|
||||
-- Table structure for table `pages`
|
||||
--
|
||||
|
||||
CREATE TABLE `pages` (
|
||||
`id` int(11) NOT NULL,
|
||||
`title` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`slug` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`content` text COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`meta_title` text COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`meta_description` varchar(1000) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`keywords` varchar(1000) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`meta_image` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `pages`
|
||||
--
|
||||
ALTER TABLE `pages`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `pages`
|
||||
--
|
||||
ALTER TABLE `pages`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
COMMIT;
|
||||
|
||||
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
|
||||
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
|
||||
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
|
||||
3
desarrollo2/sqlupdates/v30.sql
Normal file
3
desarrollo2/sqlupdates/v30.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '3.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
7
desarrollo2/sqlupdates/v31.sql
Normal file
7
desarrollo2/sqlupdates/v31.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'payhere_sandbox', '0', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'payhere', '0', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
|
||||
|
||||
UPDATE `business_settings` SET `value` = '3.1' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
15
desarrollo2/sqlupdates/v32.sql
Normal file
15
desarrollo2/sqlupdates/v32.sql
Normal file
@@ -0,0 +1,15 @@
|
||||
ALTER TABLE `pages` CHANGE `content` `content` LONGTEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'google_recaptcha', '0', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
|
||||
|
||||
ALTER TABLE `users` ADD `new_email_verificiation_code` TEXT NULL DEFAULT NULL AFTER `email_verified_at`;
|
||||
|
||||
ALTER TABLE `products` ADD `min_qty` INT NOT NULL DEFAULT '1' AFTER `unit`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '3.2' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
ALTER TABLE `users` ADD COLUMN `verification_code` TEXT NULL DEFAULT NULL AFTER `email_verified_at`;
|
||||
|
||||
ALTER TABLE `users` CHANGE `verification_code` `verification_code` TEXT NULL DEFAULT NULL;
|
||||
|
||||
COMMIT;
|
||||
26
desarrollo2/sqlupdates/v33.sql
Normal file
26
desarrollo2/sqlupdates/v33.sql
Normal file
@@ -0,0 +1,26 @@
|
||||
ALTER TABLE `users` ADD `banned` TINYINT NOT NULL DEFAULT '0' AFTER `balance`;
|
||||
|
||||
ALTER TABLE `general_settings` ADD `footer_logo` VARCHAR(255) NULL DEFAULT NULL AFTER `logo`;
|
||||
|
||||
CREATE TABLE `customer_package_payments` (
|
||||
`id` int(11) NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`customer_package_id` int(11) NOT NULL,
|
||||
`payment_method` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`payment_details` longtext COLLATE utf8_unicode_ci NOT NULL,
|
||||
`approval` int(1) NOT NULL,
|
||||
`offline_payment` int(1) NOT NULL COMMENT '1=offline payment\r\n2=online paymnet',
|
||||
`reciept` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
ALTER TABLE `customer_package_payments`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `customer_package_payments`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '3.3' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
5
desarrollo2/sqlupdates/v34.sql
Normal file
5
desarrollo2/sqlupdates/v34.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'ngenius', '0', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
|
||||
|
||||
UPDATE `business_settings` SET `value` = '3.4' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v35.sql
Normal file
3
desarrollo2/sqlupdates/v35.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '3.5' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
1473
desarrollo2/sqlupdates/v36.sql
Normal file
1473
desarrollo2/sqlupdates/v36.sql
Normal file
File diff suppressed because it is too large
Load Diff
13
desarrollo2/sqlupdates/v37.sql
Normal file
13
desarrollo2/sqlupdates/v37.sql
Normal file
@@ -0,0 +1,13 @@
|
||||
ALTER TABLE `categories` ADD `parent_id` INT NULL DEFAULT '0' AFTER `id`;
|
||||
|
||||
ALTER TABLE `categories` ADD `level` INT NOT NULL DEFAULT '0' AFTER `parent_id`;
|
||||
|
||||
ALTER TABLE `products` CHANGE `subcategory_id` `subcategory_id` INT(11) NULL DEFAULT NULL;
|
||||
|
||||
ALTER TABLE `product_translations` CHANGE `description` `description` LONGTEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '3.7' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
INSERT INTO `business_settings` (`type`, `value`, `created_at`, `updated_at`) VALUES ('payfast', '0', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP), ('payfast_sandbox', '1', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
|
||||
|
||||
COMMIT;
|
||||
11
desarrollo2/sqlupdates/v38.sql
Normal file
11
desarrollo2/sqlupdates/v38.sql
Normal file
@@ -0,0 +1,11 @@
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'iyzico_sandbox', '1', current_timestamp(), current_timestamp());
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'iyzico', '1', current_timestamp(), current_timestamp());
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'decimal_separator', '1', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
|
||||
|
||||
ALTER TABLE `page_translations` CHANGE `content` `content` LONGTEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '3.8' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
51
desarrollo2/sqlupdates/v39.sql
Normal file
51
desarrollo2/sqlupdates/v39.sql
Normal file
@@ -0,0 +1,51 @@
|
||||
ALTER TABLE `categories` ADD INDEX(`slug`);
|
||||
|
||||
ALTER TABLE `products` ADD INDEX(`name`);
|
||||
|
||||
ALTER TABLE `products` CHANGE `tags` `tags` VARCHAR(1000) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;
|
||||
|
||||
ALTER TABLE `products` ADD INDEX(`tags`);
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'nagad', '0', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'bkash', '0', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'bkash_sandbox', '1', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
|
||||
|
||||
CREATE TABLE `cities` (
|
||||
`id` int(11) NOT NULL,
|
||||
`country_id` int(11) NOT NULL,
|
||||
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`cost` double(20,2) NOT NULL DEFAULT '0.00',
|
||||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
ALTER TABLE `cities`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `cities`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
|
||||
CREATE TABLE `city_translations` (
|
||||
`id` int(11) NOT NULL,
|
||||
`city_id` int(11) NOT NULL,
|
||||
`name` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`lang` varchar(10) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
ALTER TABLE `city_translations`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
ALTER TABLE `city_translations`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
ALTER TABLE `products` ADD `seller_featured` INT NOT NULL DEFAULT '0' AFTER `featured`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '3.9' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
ALTER TABLE `sellers` ADD UNIQUE(`user_id`);
|
||||
|
||||
COMMIT;
|
||||
48
desarrollo2/sqlupdates/v40.sql
Normal file
48
desarrollo2/sqlupdates/v40.sql
Normal file
@@ -0,0 +1,48 @@
|
||||
ALTER TABLE `product_stocks` ADD `image` INT NULL DEFAULT NULL AFTER `qty`;
|
||||
|
||||
CREATE TABLE `blogs` (
|
||||
`id` bigint(20) UNSIGNED NOT NULL,
|
||||
`category_id` int(11) NOT NULL,
|
||||
`title` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`short_description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`description` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`banner` int(11) DEFAULT NULL,
|
||||
`meta_title` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`meta_img` int(11) DEFAULT NULL,
|
||||
`meta_description` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`meta_keywords` text COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`status` int(1) NOT NULL DEFAULT 1,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
`deleted_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
ALTER TABLE `blogs`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `blogs`
|
||||
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||||
|
||||
CREATE TABLE `blog_categories` (
|
||||
`id` bigint(20) UNSIGNED NOT NULL,
|
||||
`category_name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`slug` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL,
|
||||
`deleted_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
ALTER TABLE `blog_categories`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `blog_categories`
|
||||
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||||
|
||||
INSERT INTO `business_settings` (`type`, `value`, `created_at`, `updated_at`) VALUES
|
||||
('header_menu_labels', '[\"Home\",\"Flash Sale\",\"Blogs\",\"All Brands\",\"All Categories\"]', '2021-02-16 08:43:11', '2021-02-16 08:52:18'),
|
||||
('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');
|
||||
|
||||
UPDATE `business_settings` SET `value` = '4.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
94
desarrollo2/sqlupdates/v41.sql
Normal file
94
desarrollo2/sqlupdates/v41.sql
Normal file
@@ -0,0 +1,94 @@
|
||||
ALTER TABLE `products` CHANGE `shipping_cost` `shipping_cost` TEXT NULL DEFAULT NULL;
|
||||
ALTER TABLE `products` ADD `cash_on_delivery` TINYINT(1) NOT NULL DEFAULT '1' COMMENT '1 = On, 0 = Off' AFTER `published`;
|
||||
ALTER TABLE `products` ADD `low_stock_quantity` INT(11) NULL AFTER `min_qty`;
|
||||
ALTER TABLE `products` ADD `est_shipping_days` INT(11) NULL AFTER `shipping_cost`;
|
||||
ALTER TABLE `products` ADD `stock_visibility_state` VARCHAR(10) NOT NULL DEFAULT 'quantity' AFTER `published`;
|
||||
|
||||
--
|
||||
-- Table structure for table `product_taxes`
|
||||
--
|
||||
|
||||
CREATE TABLE `product_taxes` (
|
||||
`id` int(11) NOT NULL,
|
||||
`product_id` int(11) NOT NULL,
|
||||
`tax_id` int(11) NOT NULL,
|
||||
`tax` double(20,2) NOT NULL,
|
||||
`tax_type` varchar(10) NOT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Indexes for table `product_taxes`
|
||||
--
|
||||
ALTER TABLE `product_taxes` ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `product_taxes`
|
||||
--
|
||||
ALTER TABLE `product_taxes`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
||||
|
||||
|
||||
--
|
||||
-- Table structure for table `taxes`
|
||||
--
|
||||
|
||||
CREATE TABLE `taxes` (
|
||||
`id` int(11) NOT NULL,
|
||||
`name` varchar(255) NOT NULL,
|
||||
`tax_status` tinyint(1) NOT NULL DEFAULT 1 COMMENT '0 = Inactive, 1 = Active',
|
||||
`created_at` timestamp NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Indexes for table `taxes`
|
||||
--
|
||||
ALTER TABLE `taxes` ADD PRIMARY KEY (`id`);
|
||||
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `taxes`
|
||||
--
|
||||
ALTER TABLE `taxes`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
||||
|
||||
|
||||
INSERT INTO `taxes` (`id`, `name`, `tax_status`, `created_at`, `updated_at`) VALUES (NULL, 'Tax', '1', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
|
||||
|
||||
|
||||
--
|
||||
-- Table structure for table `commission_histories`
|
||||
--
|
||||
|
||||
CREATE TABLE `commission_histories` (
|
||||
`id` int(11) NOT NULL,
|
||||
`order_id` int(11) NOT NULL,
|
||||
`order_detail_id` int(11) NOT NULL,
|
||||
`seller_id` int(11) NOT NULL,
|
||||
`admin_commission` double(25,2) NOT NULL,
|
||||
`seller_earning` double(25,2) NOT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Indexes for table `commission_histories`
|
||||
--
|
||||
ALTER TABLE `commission_histories`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `commission_histories`
|
||||
--
|
||||
ALTER TABLE `commission_histories`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '4.1' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
8
desarrollo2/sqlupdates/v42.sql
Normal file
8
desarrollo2/sqlupdates/v42.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
ALTER TABLE `orders` ADD `seller_id` INT(11) NULL DEFAULT NULL AFTER `guest_id`;
|
||||
ALTER TABLE `orders` ADD `delivery_status` VARCHAR(20) NULL DEFAULT 'pending' AFTER `shipping_address`;
|
||||
ALTER TABLE `categories` ADD `order_level` INT(11) NOT NULL DEFAULT '0' AFTER `name`;
|
||||
ALTER TABLE `products` ADD `is_quantity_multiplied` TINYINT(1) NOT NULL DEFAULT '0' COMMENT '1 = Mutiplied with shipping cost' AFTER `shipping_cost`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '4.2' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
29
desarrollo2/sqlupdates/v43.sql
Normal file
29
desarrollo2/sqlupdates/v43.sql
Normal file
@@ -0,0 +1,29 @@
|
||||
DROP TABLE `carts`;
|
||||
|
||||
CREATE TABLE `carts` (
|
||||
`id` int(11) UNSIGNED NOT NULL,
|
||||
`owner_id` int(11) DEFAULT NULL,
|
||||
`user_id` int(11) DEFAULT NULL,
|
||||
`address_id` int(11) NOT NULL DEFAULT '0',
|
||||
`product_id` int(11) DEFAULT NULL,
|
||||
`variation` text COLLATE utf8_unicode_ci,
|
||||
`price` double(8,2) DEFAULT '0.00',
|
||||
`tax` double(8,2) DEFAULT '0.00',
|
||||
`shipping_cost` double(8,2) DEFAULT '0.00',
|
||||
`discount` double(10,2) NOT NULL DEFAULT '0.00',
|
||||
`coupon_code` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`coupon_applied` tinyint(4) NOT NULL DEFAULT '0',
|
||||
`quantity` int(11) NOT NULL DEFAULT '0',
|
||||
`created_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` timestamp NULL DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
ALTER TABLE `carts`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `carts`
|
||||
MODIFY `id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=57;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '4.3' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v44.sql
Normal file
3
desarrollo2/sqlupdates/v44.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '4.4' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
12
desarrollo2/sqlupdates/v45.sql
Normal file
12
desarrollo2/sqlupdates/v45.sql
Normal file
@@ -0,0 +1,12 @@
|
||||
ALTER TABLE `products` CHANGE `purchase_price` `purchase_price` DOUBLE(20,2) NULL DEFAULT NULL;
|
||||
ALTER TABLE `product_stocks` CHANGE `variant` `variant` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;
|
||||
ALTER TABLE `products` DROP `subcategory_id`, DROP `subsubcategory_id`;
|
||||
|
||||
ALTER TABLE `carts` ADD `shipping_type` VARCHAR(30) NOT NULL DEFAULT '' AFTER `shipping_cost`;
|
||||
ALTER TABLE `carts` ADD `pickup_point` INT(11) NULL DEFAULT NULL AFTER `shipping_type`;
|
||||
ALTER TABLE `seller_withdraw_requests` CHANGE `message` `message` LONGTEXT CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL;
|
||||
ALTER TABLE `carts` ADD `temp_user_id` VARCHAR(255) NULL DEFAULT NULL AFTER `user_id`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '4.5' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v46.sql
Normal file
3
desarrollo2/sqlupdates/v46.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '4.6' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v47.sql
Normal file
3
desarrollo2/sqlupdates/v47.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '4.7' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
73
desarrollo2/sqlupdates/v48.sql
Normal file
73
desarrollo2/sqlupdates/v48.sql
Normal file
@@ -0,0 +1,73 @@
|
||||
UPDATE `business_settings` SET `value` = '4.8' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
ALTER TABLE `shops` ADD `phone` VARCHAR(255) NULL DEFAULT NULL AFTER `sliders`;
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'proxypay', '1', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'proxypay_sandbox', '1', CURRENT_TIMESTAMP, CURRENT_TIMESTAMP);
|
||||
|
||||
|
||||
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`;
|
||||
|
||||
|
||||
CREATE TABLE `attribute_values` (
|
||||
`id` int(11) NOT NULL,
|
||||
`attribute_id` int(11) NOT NULL,
|
||||
`value` varchar(255) NOT NULL,
|
||||
`color_code` varchar(100) DEFAULT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `attribute_values`
|
||||
--
|
||||
ALTER TABLE `attribute_values`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `attribute_values`
|
||||
--
|
||||
ALTER TABLE `attribute_values` MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
CREATE TABLE `proxypay_payments` (
|
||||
`id` int(11) NOT NULL,
|
||||
`payment_type` varchar(20) NOT NULL,
|
||||
`reference_id` varchar(20) NOT NULL,
|
||||
`order_id` int(11) DEFAULT NULL,
|
||||
`package_id` int(11) DEFAULT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`amount` double(25,2) NOT NULL DEFAULT 0.00,
|
||||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `proxypay_payments`
|
||||
--
|
||||
ALTER TABLE `proxypay_payments`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `proxypay_payments`
|
||||
--
|
||||
ALTER TABLE `proxypay_payments`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
COMMIT;
|
||||
37
desarrollo2/sqlupdates/v49.sql
Normal file
37
desarrollo2/sqlupdates/v49.sql
Normal file
@@ -0,0 +1,37 @@
|
||||
UPDATE `business_settings` SET `value` = '4.9' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
ALTER TABLE `addresses` ADD `longitude` FLOAT NULL AFTER `city`, ADD `latitude` FLOAT NULL AFTER `longitude`;
|
||||
ALTER TABLE `users` ADD `device_token` VARCHAR(255) NULL DEFAULT NULL AFTER `remember_token`;
|
||||
ALTER TABLE `carts` ADD `product_referral_code` VARCHAR(255) NULL DEFAULT NULL AFTER `discount`;
|
||||
ALTER TABLE `products` ADD `approved` TINYINT(1) NOT NULL DEFAULT '1' AFTER `published`;
|
||||
ALTER TABLE `business_settings` ADD `lang` varchar(30) DEFAULT NULL AFTER `value`;
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'google_map', '0', current_timestamp(), current_timestamp());
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `created_at`, `updated_at`) VALUES (NULL, 'google_firebase', '0', current_timestamp(), current_timestamp());
|
||||
--
|
||||
-- Table structure for table `notifications`
|
||||
--
|
||||
|
||||
CREATE TABLE `notifications` (
|
||||
`id` char(36) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`notifiable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`notifiable_id` bigint(20) UNSIGNED NOT NULL,
|
||||
`data` text COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`read_at` timestamp NULL DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `notifications`
|
||||
--
|
||||
ALTER TABLE `notifications`
|
||||
ADD PRIMARY KEY (`id`),
|
||||
ADD KEY `notifications_notifiable_type_notifiable_id_index` (`notifiable_type`,`notifiable_id`);
|
||||
|
||||
COMMIT;
|
||||
37
desarrollo2/sqlupdates/v50.sql
Normal file
37
desarrollo2/sqlupdates/v50.sql
Normal file
@@ -0,0 +1,37 @@
|
||||
UPDATE `business_settings` SET `value` = '5.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
CREATE TABLE `firebase_notifications` (
|
||||
`id` int(11) NOT NULL,
|
||||
`item_type` varchar(255) NOT NULL,
|
||||
`item_type_id` int(11) NOT NULL,
|
||||
`receiver_id` int(11) NOT NULL,
|
||||
`is_read` tinyint(1) NOT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `firebase_notification`
|
||||
--
|
||||
ALTER TABLE `firebase_notifications`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `firebase_notification`
|
||||
--
|
||||
ALTER TABLE `firebase_notifications`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
ALTER TABLE `firebase_notifications` CHANGE `is_read` `is_read` TINYINT(1) NOT NULL DEFAULT '0';
|
||||
ALTER TABLE `firebase_notifications` ADD `title` VARCHAR(255) NULL DEFAULT NULL AFTER `id`;
|
||||
ALTER TABLE `firebase_notifications` ADD `text` TEXT NULL DEFAULT NULL AFTER `title`;
|
||||
|
||||
COMMIT;
|
||||
5
desarrollo2/sqlupdates/v51.sql
Normal file
5
desarrollo2/sqlupdates/v51.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE `products` ADD `auction_product` INT(1) NOT NULL DEFAULT '0' AFTER `digital`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '5.1' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
43
desarrollo2/sqlupdates/v52.sql
Normal file
43
desarrollo2/sqlupdates/v52.sql
Normal file
@@ -0,0 +1,43 @@
|
||||
CREATE TABLE `attribute_category` (
|
||||
`id` int(11) NOT NULL,
|
||||
`category_id` int(11) NOT NULL,
|
||||
`attribute_id` int(11) NOT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
ALTER TABLE `attribute_category`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `attribute_category`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
COMMIT;
|
||||
|
||||
|
||||
ALTER TABLE `coupons` ADD `user_id` INT NOT NULL AFTER `id`;
|
||||
ALTER TABLE `carts` CHANGE `coupon_code` `coupon_code` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;
|
||||
ALTER TABLE `carts` CHANGE `price` `price` DOUBLE(20,2) NULL DEFAULT '0.00';
|
||||
ALTER TABLE `carts` CHANGE `tax` `tax` DOUBLE(20,2) NULL DEFAULT '0.00';
|
||||
ALTER TABLE `carts` CHANGE `shipping_cost` `shipping_cost` DOUBLE(20,2) NULL DEFAULT '0.00';
|
||||
|
||||
CREATE TABLE `combined_orders` (
|
||||
`id` int(11) NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`shipping_address` text COLLATE utf8_unicode_ci,
|
||||
`grand_total` double(20,2) NOT NULL DEFAULT '0.00',
|
||||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
ALTER TABLE `combined_orders`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `combined_orders`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
COMMIT;
|
||||
|
||||
ALTER TABLE `orders` ADD `combined_order_id` INT NULL DEFAULT NULL AFTER `id`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '5.2' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
18
desarrollo2/sqlupdates/v53.sql
Normal file
18
desarrollo2/sqlupdates/v53.sql
Normal file
@@ -0,0 +1,18 @@
|
||||
ALTER TABLE `products` ADD INDEX(`unit_price`);
|
||||
|
||||
ALTER TABLE `products` ADD INDEX(`created_at`);
|
||||
|
||||
ALTER TABLE `products` CHANGE `tags` `tags` VARCHAR(500) CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;
|
||||
|
||||
ALTER TABLE `shops` ADD `delivery_pickup_latitude` FLOAT NULL DEFAULT NULL AFTER `shipping_cost`,
|
||||
ADD `delivery_pickup_longitude` FLOAT NULL DEFAULT NULL AFTER `delivery_pickup_latitude`;
|
||||
|
||||
ALTER TABLE `sellers` ADD `rating` DOUBLE(3,2) NOT NULL DEFAULT '0' AFTER `user_id`;
|
||||
ALTER TABLE `sellers` ADD `num_of_sale` INT NOT NULL DEFAULT '0' AFTER `rating`;
|
||||
ALTER TABLE `sellers` ADD `num_of_reviews` INT NOT NULL DEFAULT '0' AFTER `rating`;
|
||||
|
||||
ALTER TABLE `addons` ADD `purchase_code` VARCHAR(255) NULL DEFAULT NULL AFTER `image`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '5.3' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
5
desarrollo2/sqlupdates/v54.sql
Normal file
5
desarrollo2/sqlupdates/v54.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE `products` ADD `external_link` VARCHAR(500) NULL DEFAULT NULL AFTER `file_path`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '5.4' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v541.sql
Normal file
3
desarrollo2/sqlupdates/v541.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '5.4.1' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
5
desarrollo2/sqlupdates/v542.sql
Normal file
5
desarrollo2/sqlupdates/v542.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE `categories` CHANGE `name` `name` VARCHAR(50) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '5.4.2' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v543.sql
Normal file
3
desarrollo2/sqlupdates/v543.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '5.4.3' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
5
desarrollo2/sqlupdates/v544.sql
Normal file
5
desarrollo2/sqlupdates/v544.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE `products` ADD `wholesale_product` INT(1) NOT NULL DEFAULT '0' AFTER `external_link`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '5.4.4' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
6
desarrollo2/sqlupdates/v545.sql
Normal file
6
desarrollo2/sqlupdates/v545.sql
Normal file
@@ -0,0 +1,6 @@
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `lang`, `created_at`, `updated_at`) VALUES (NULL, 'authorizenet_sandbox', '1', NULL, '2021-02-16 08:43:11', '2021-06-14 11:00:23');
|
||||
ALTER TABLE `users` ADD `state` VARCHAR(30) NULL DEFAULT NULL AFTER `country`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '5.4.5' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
52464
desarrollo2/sqlupdates/v55.sql
Normal file
52464
desarrollo2/sqlupdates/v55.sql
Normal file
File diff suppressed because it is too large
Load Diff
5
desarrollo2/sqlupdates/v551.sql
Normal file
5
desarrollo2/sqlupdates/v551.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `lang`, `created_at`, `updated_at`) VALUES (NULL, 'authorizenet_sandbox', '1', NULL, '2021-02-16 08:43:11', '2021-06-14 11:00:23');
|
||||
|
||||
UPDATE `business_settings` SET `value` = '5.5.1' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
49
desarrollo2/sqlupdates/v552.sql
Normal file
49
desarrollo2/sqlupdates/v552.sql
Normal file
@@ -0,0 +1,49 @@
|
||||
CREATE TABLE `payku_transactions` (
|
||||
`id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`status` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`order` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`email` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`subject` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`url` text COLLATE utf8mb4_unicode_ci,
|
||||
`amount` int(10) UNSIGNED DEFAULT NULL,
|
||||
`notified_at` datetime DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
ALTER TABLE `payku_transactions`
|
||||
ADD UNIQUE KEY `payku_transactions_id_unique` (`id`),
|
||||
ADD UNIQUE KEY `payku_transactions_order_unique` (`order`);
|
||||
COMMIT;
|
||||
|
||||
CREATE TABLE `payku_payments` (
|
||||
`transaction_id` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`start` date NOT NULL,
|
||||
`end` date NOT NULL,
|
||||
`media` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`transaction_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`payment_key` varchar(255) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`verification_key` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`authorization_code` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`last_4_digits` int(10) UNSIGNED DEFAULT NULL,
|
||||
`installments` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`card_type` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`additional_parameters` varchar(191) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`currency` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
|
||||
ALTER TABLE `payku_payments`
|
||||
ADD UNIQUE KEY `payku_payments_transaction_id_unique` (`transaction_id`);
|
||||
|
||||
ALTER TABLE `payku_payments`
|
||||
ADD CONSTRAINT `payku_payments_transaction_id_foreign` FOREIGN KEY (`transaction_id`) REFERENCES `payku_transactions` (`id`);
|
||||
|
||||
|
||||
ALTER TABLE `products` ADD `external_link_btn` VARCHAR(255) NULL DEFAULT 'Buy Now' AFTER `external_link`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '5.5.2' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
5
desarrollo2/sqlupdates/v553.sql
Normal file
5
desarrollo2/sqlupdates/v553.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE `orders` ADD `tracking_code` VARCHAR(255) NULL DEFAULT NULL AFTER `code`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '5.5.3' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
45
desarrollo2/sqlupdates/v554.sql
Normal file
45
desarrollo2/sqlupdates/v554.sql
Normal file
@@ -0,0 +1,45 @@
|
||||
DROP TABLE `oauth_access_tokens`, `oauth_auth_codes`, `oauth_clients`, `oauth_personal_access_clients`, `oauth_refresh_tokens`;
|
||||
|
||||
DROP TABLE `app_settings`, `banners`, `general_settings`, `links`, `policies`, `seo_settings`, `sliders`;
|
||||
|
||||
CREATE TABLE `personal_access_tokens` (
|
||||
`id` bigint(20) UNSIGNED NOT NULL,
|
||||
`tokenable_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`tokenable_id` bigint(20) UNSIGNED NOT NULL,
|
||||
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`token` varchar(64) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`abilities` text COLLATE utf8mb4_unicode_ci,
|
||||
`last_used_at` timestamp NULL DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
ALTER TABLE `personal_access_tokens`
|
||||
ADD PRIMARY KEY (`id`),
|
||||
ADD UNIQUE KEY `personal_access_tokens_token_unique` (`token`),
|
||||
ADD KEY `personal_access_tokens_tokenable_type_tokenable_id_index` (`tokenable_type`,`tokenable_id`);
|
||||
|
||||
ALTER TABLE `personal_access_tokens`
|
||||
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||||
|
||||
CREATE TABLE `transactions` (
|
||||
`id` int(11) NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`gateway` varchar(255) DEFAULT NULL,
|
||||
`payment_type` varchar(255) DEFAULT NULL,
|
||||
`additional_content` text,
|
||||
`mpesa_request` varchar(255) DEFAULT NULL,
|
||||
`mpesa_receipt` varchar(255) DEFAULT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
`updated_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
|
||||
|
||||
ALTER TABLE `transactions`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `transactions`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=3;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '5.5.4' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
7
desarrollo2/sqlupdates/v555.sql
Normal file
7
desarrollo2/sqlupdates/v555.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
ALTER TABLE `orders` ADD `shipping_type` VARCHAR(50) NOT NULL AFTER `shipping_address`, ADD `pickup_point_id` INT(11) NOT NULL DEFAULT '0' AFTER `shipping_type`;
|
||||
|
||||
ALTER TABLE `transactions` ADD `status` INT(1) NOT NULL DEFAULT '0' AFTER `mpesa_receipt`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '5.5.5' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
7
desarrollo2/sqlupdates/v556.sql
Normal file
7
desarrollo2/sqlupdates/v556.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
ALTER TABLE `uploads` ADD `external_link` VARCHAR(500) NULL DEFAULT NULL AFTER `type`;
|
||||
|
||||
ALTER TABLE `shops` ADD `instagram` VARCHAR(255) NULL DEFAULT NULL AFTER `facebook`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '5.5.6' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
5
desarrollo2/sqlupdates/v557.sql
Normal file
5
desarrollo2/sqlupdates/v557.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE `languages` ADD `status` TINYINT(1) NOT NULL DEFAULT '1' AFTER `rtl`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '5.5.7' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
36
desarrollo2/sqlupdates/v60.sql
Normal file
36
desarrollo2/sqlupdates/v60.sql
Normal file
@@ -0,0 +1,36 @@
|
||||
DROP TABLE `customers`;
|
||||
|
||||
UPDATE `carts` SET `shipping_cost`=0.00 WHERE shipping_cost is null;
|
||||
UPDATE `products` SET `shipping_cost`=0.00 WHERE shipping_cost is null;
|
||||
|
||||
ALTER TABLE `products` CHANGE `shipping_cost` `shipping_cost` DOUBLE(20,2) NOT NULL DEFAULT '0.00';
|
||||
ALTER TABLE `carts` CHANGE `shipping_cost` `shipping_cost` DOUBLE(20,2) NOT NULL DEFAULT '0.00';
|
||||
|
||||
ALTER TABLE `shops`
|
||||
ADD `rating` double(3,2) NOT NULL DEFAULT 0.00 AFTER `address`,
|
||||
ADD `num_of_reviews` int(11) NOT NULL DEFAULT 0 AFTER `rating`,
|
||||
ADD `num_of_sale` int(11) NOT NULL DEFAULT 0 AFTER `num_of_reviews`,
|
||||
ADD `seller_package_id` int(11) DEFAULT NULL AFTER `num_of_sale`,
|
||||
ADD `product_upload_limit` int(11) NOT NULL DEFAULT 0 AFTER `seller_package_id`,
|
||||
ADD `package_invalid_at` date DEFAULT NULL AFTER `product_upload_limit`,
|
||||
ADD `verification_status` int(1) NOT NULL DEFAULT 0 AFTER `package_invalid_at`,
|
||||
ADD `verification_info` longtext COLLATE utf8_unicode_ci DEFAULT NULL AFTER `verification_status`,
|
||||
ADD `cash_on_delivery_status` int(1) NOT NULL DEFAULT 0 AFTER `verification_info`,
|
||||
ADD `admin_to_pay` double(20,2) NOT NULL DEFAULT 0.00 AFTER `cash_on_delivery_status`,
|
||||
ADD `bank_name` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL AFTER `delivery_pickup_longitude`,
|
||||
ADD `bank_acc_name` varchar(200) COLLATE utf8_unicode_ci DEFAULT NULL AFTER `bank_name`,
|
||||
ADD `bank_acc_no` varchar(50) COLLATE utf8_unicode_ci DEFAULT NULL AFTER `bank_acc_name`,
|
||||
ADD `bank_routing_no` int(50) DEFAULT NULL AFTER `bank_acc_no`,
|
||||
ADD `bank_payment_status` int(11) NOT NULL DEFAULT 0 AFTER `bank_routing_no`;
|
||||
|
||||
ALTER TABLE `products` CHANGE `cash_on_delivery` `cash_on_delivery` TINYINT(1) NOT NULL DEFAULT '0' COMMENT '1 = On, 0 = Off';
|
||||
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `lang`, `created_at`, `updated_at`)
|
||||
VALUES
|
||||
(NULL, 'min_order_amount_check_activation', NULL, NULL, current_timestamp(), current_timestamp()),
|
||||
(NULL, 'minimum_order_amount', NULL, NULL, current_timestamp(), current_timestamp());
|
||||
|
||||
UPDATE `business_settings` SET `value` = '6.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v61.sql
Normal file
3
desarrollo2/sqlupdates/v61.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '6.1' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
4
desarrollo2/sqlupdates/v611.sql
Normal file
4
desarrollo2/sqlupdates/v611.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE `orders` ADD `additional_info` LONGTEXT NULL AFTER `shipping_address`;
|
||||
UPDATE `business_settings` SET `value` = '6.1.1' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
21
desarrollo2/sqlupdates/v612.sql
Normal file
21
desarrollo2/sqlupdates/v612.sql
Normal file
@@ -0,0 +1,21 @@
|
||||
CREATE TABLE `product_queries` (
|
||||
`id` bigint(20) UNSIGNED NOT NULL,
|
||||
`customer_id` int(11) NOT NULL,
|
||||
`seller_id` int(11) NOT NULL,
|
||||
`product_id` int(11) NOT NULL,
|
||||
`question` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`reply` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
ALTER TABLE `product_queries`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `product_queries`
|
||||
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||||
|
||||
|
||||
UPDATE `business_settings` SET `value` = '6.1.2' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v613.sql
Normal file
3
desarrollo2/sqlupdates/v613.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '6.1.3' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v614.sql
Normal file
3
desarrollo2/sqlupdates/v614.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '6.1.4' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v615.sql
Normal file
3
desarrollo2/sqlupdates/v615.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '6.1.5' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
122
desarrollo2/sqlupdates/v620.sql
Normal file
122
desarrollo2/sqlupdates/v620.sql
Normal file
@@ -0,0 +1,122 @@
|
||||
ALTER TABLE `products` ADD `weight` DOUBLE(8,2) NOT NULL DEFAULT '0.00' AFTER `unit`;
|
||||
ALTER TABLE `carts` ADD `carrier_id` INT NULL AFTER `pickup_point`;
|
||||
ALTER TABLE `orders` ADD `carrier_id` INT NULL AFTER `pickup_point_id`;
|
||||
|
||||
--
|
||||
-- Table structure for table `zones`
|
||||
--
|
||||
|
||||
CREATE TABLE `zones` (
|
||||
`id` int(11) NOT NULL,
|
||||
`name` varchar(255) NOT NULL,
|
||||
`status` tinyint(1) NOT NULL COMMENT '0 = Inactive, 1 = Active',
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `zones`
|
||||
--
|
||||
ALTER TABLE `zones`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `zones`
|
||||
--
|
||||
ALTER TABLE `zones`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
|
||||
ALTER TABLE `countries` ADD `zone_id` INT(11) NOT NULL DEFAULT '0' AFTER `name`;
|
||||
|
||||
|
||||
|
||||
--
|
||||
-- Table structure for table `carriers`
|
||||
--
|
||||
|
||||
CREATE TABLE `carriers` (
|
||||
`id` int(11) NOT NULL,
|
||||
`name` varchar(255) NOT NULL,
|
||||
`logo` int(11) DEFAULT NULL,
|
||||
`transit_time` varchar(255) NOT NULL,
|
||||
`free_shipping` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`status` tinyint(1) NOT NULL DEFAULT 1,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp() ON UPDATE current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;
|
||||
|
||||
--
|
||||
-- Indexes for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `carriers`
|
||||
--
|
||||
ALTER TABLE `carriers`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `carriers`
|
||||
--
|
||||
ALTER TABLE `carriers`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
|
||||
-- Carrier Ranges
|
||||
CREATE TABLE `carrier_ranges` (
|
||||
`id` int(11) NOT NULL,
|
||||
`carrier_id` int(11) NOT NULL,
|
||||
`billing_type` varchar(20) COLLATE utf8_unicode_ci NOT NULL,
|
||||
`delimiter1` int(11) NOT NULL,
|
||||
`delimiter2` int(11) NOT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
--
|
||||
-- Indexes for table `carrier_ranges`
|
||||
--
|
||||
|
||||
ALTER TABLE `carrier_ranges`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `carrier_ranges`
|
||||
--
|
||||
ALTER TABLE `carrier_ranges`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
-- Carrier Range Prices
|
||||
CREATE TABLE `carrier_range_prices` (
|
||||
`id` int(11) NOT NULL,
|
||||
`carrier_id` int(11) NOT NULL,
|
||||
`carrier_range_id` int(11) NOT NULL,
|
||||
`zone_id` int(11) NOT NULL,
|
||||
`price` double(8,2) NOT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
ALTER TABLE `carrier_range_prices`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `carrier_range_prices`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '6.2.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
298
desarrollo2/sqlupdates/v630.sql
Normal file
298
desarrollo2/sqlupdates/v630.sql
Normal file
@@ -0,0 +1,298 @@
|
||||
DROP TABLE `roles`;
|
||||
|
||||
-- roles
|
||||
CREATE TABLE `roles` (
|
||||
`id` bigint(20) UNSIGNED NOT NULL,
|
||||
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`created_at` timestamp NULL DEFAULT NULL,
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
INSERT INTO `roles` (`id`, `name`, `guard_name`, `created_at`, `updated_at`) VALUES
|
||||
(1, 'Super Admin', 'web', '2022-06-13 06:29:58', '2022-06-12 18:00:00');
|
||||
|
||||
ALTER TABLE `roles`
|
||||
ADD PRIMARY KEY (`id`),
|
||||
ADD UNIQUE KEY `roles_name_guard_name_unique` (`name`,`guard_name`);
|
||||
|
||||
ALTER TABLE `roles`
|
||||
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT, AUTO_INCREMENT=2;
|
||||
|
||||
-- permissions
|
||||
CREATE TABLE `permissions` (
|
||||
`id` bigint(20) UNSIGNED NOT NULL,
|
||||
`name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`section` varchar(50) COLLATE utf8mb4_unicode_ci DEFAULT NULL,
|
||||
`guard_name` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`created_at` timestamp NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NULL DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
INSERT INTO `permissions` (`id`, `name`, `section`, `guard_name`, `created_at`, `updated_at`) VALUES
|
||||
(1, 'add_new_product', 'product', 'web', '2022-06-12 15:31:31', '2022-06-12 15:31:31'),
|
||||
(2, 'show_all_products', 'product', 'web', '2022-06-12 15:32:34', '2022-06-12 15:32:34'),
|
||||
(3, 'show_in_house_products', 'product', 'web', '2022-06-12 15:33:08', '2022-06-12 15:33:08'),
|
||||
(4, 'show_seller_products', 'product', 'web', '2022-06-12 15:33:40', '2022-06-12 15:33:40'),
|
||||
(5, 'product_edit', 'product', 'web', '2022-06-13 19:50:06', '2022-06-13 19:50:06'),
|
||||
(6, 'product_duplicate', 'product', 'web', '2022-06-13 21:24:20', '2022-06-13 21:24:20'),
|
||||
(7, 'product_delete', 'product', 'web', '2022-06-13 21:24:47', '2022-06-13 21:24:47'),
|
||||
(8, 'show_digital_products', 'product', 'web', '2022-06-13 22:48:13', '2022-06-13 22:48:13'),
|
||||
(9, 'add_digital_product', 'product', 'web', '2022-06-13 22:48:28', '2022-06-13 22:48:28'),
|
||||
(10, 'edit_digital_product', 'product', 'web', '2022-06-13 22:48:40', '2022-06-13 22:48:40'),
|
||||
(11, 'delete_digital_product', 'product', 'web', '2022-06-13 22:48:47', '2022-06-13 22:48:47'),
|
||||
(12, 'download_digital_product', 'product', 'web', '2022-06-13 22:48:57', '2022-06-13 22:48:57'),
|
||||
(13, 'product_bulk_import', 'product', 'web', '2022-06-14 00:18:52', '2022-06-14 00:18:52'),
|
||||
(14, 'product_bulk_export', 'product', 'web', '2022-06-14 00:19:19', '2022-06-14 00:19:19'),
|
||||
(15, 'view_product_categories', 'product_category', 'web', '2022-06-14 00:24:33', '2022-06-14 00:24:33'),
|
||||
(16, 'add_product_category', 'product_category', 'web', '2022-06-14 00:25:56', '2022-06-14 00:25:56'),
|
||||
(17, 'edit_product_category', 'product_category', 'web', '2022-06-14 00:26:17', '2022-06-14 00:26:17'),
|
||||
(18, 'delete_product_category', 'product_category', 'web', '2022-06-14 00:26:42', '2022-06-14 00:26:42'),
|
||||
(19, 'view_all_brands', 'brand', 'web', '2022-06-14 17:31:46', '2022-06-14 17:31:46'),
|
||||
(20, 'add_brand', 'brand', 'web', '2022-06-14 17:32:08', '2022-06-14 17:32:08'),
|
||||
(21, 'edit_brand', 'brand', 'web', '2022-06-14 17:32:16', '2022-06-14 17:32:16'),
|
||||
(22, 'delete_brand', 'brand', 'web', '2022-06-14 17:32:25', '2022-06-14 17:32:25'),
|
||||
(23, 'view_product_attributes', 'product_attribute', 'web', '2022-06-14 17:34:47', '2022-06-14 17:34:47'),
|
||||
(24, 'add_product_attribute', 'product_attribute', 'web', '2022-06-14 17:35:20', '2022-06-14 17:35:20'),
|
||||
(25, 'edit_product_attribute', 'product_attribute', 'web', '2022-06-14 17:35:26', '2022-06-14 17:35:26'),
|
||||
(26, 'delete_product_attribute', 'product_attribute', 'web', '2022-06-14 17:35:33', '2022-06-14 17:35:33'),
|
||||
(27, 'view_product_attribute_values', 'product_attribute', 'web', '2022-06-14 17:38:12', '2022-06-14 17:38:12'),
|
||||
(28, 'add_product_attribute_values', 'product_attribute', 'web', '2022-06-14 17:38:20', '2022-06-14 17:38:20'),
|
||||
(29, 'edit_product_attribute_value', 'product_attribute', 'web', '2022-06-14 17:38:50', '2022-06-14 17:38:50'),
|
||||
(30, 'delete_product_attribute_value', 'product_attribute', 'web', '2022-06-14 17:39:06', '2022-06-14 17:39:06'),
|
||||
(31, 'view_colors', 'product_attribute', 'web', '2022-06-14 17:44:16', '2022-06-14 17:44:16'),
|
||||
(32, 'add_color', 'product_attribute', 'web', '2022-06-14 17:44:41', '2022-06-14 17:44:41'),
|
||||
(33, 'edit_color', 'product_attribute', 'web', '2022-06-14 17:44:50', '2022-06-14 17:44:50'),
|
||||
(34, 'delete_color', 'product_attribute', 'web', '2022-06-14 17:44:59', '2022-06-14 17:44:59'),
|
||||
(35, 'view_product_reviews', 'product_review', 'web', '2022-06-14 17:55:04', '2022-06-14 17:55:04'),
|
||||
(36, 'publish_product_review', 'product_review', 'web', '2022-06-14 17:57:37', '2022-06-14 17:57:37'),
|
||||
(37, 'view_all_orders', 'sale', 'web', '2022-06-14 23:49:04', '2022-06-14 23:49:04'),
|
||||
(38, 'view_inhouse_orders', 'sale', 'web', '2022-06-14 23:49:30', '2022-06-14 23:49:30'),
|
||||
(39, 'view_seller_orders', 'sale', 'web', '2022-06-14 23:50:06', '2022-06-14 23:50:06'),
|
||||
(40, 'view_pickup_point_orders', 'sale', 'web', '2022-06-14 23:51:17', '2022-06-14 23:51:17'),
|
||||
(41, 'view_order_details', 'sale', 'web', '2022-06-14 23:53:13', '2022-06-14 23:53:13'),
|
||||
(42, 'update_order_payment_status', 'sale', 'web', '2022-06-14 23:53:55', '2022-06-14 23:53:55'),
|
||||
(43, 'update_order_delivery_status', 'sale', 'web', '2022-06-14 23:54:02', '2022-06-14 23:54:02'),
|
||||
(44, 'delete_order', 'sale', 'web', '2022-06-14 23:55:02', '2022-06-14 23:55:02'),
|
||||
(45, 'view_all_customers', 'customer', 'web', '2022-06-14 23:59:28', '2022-06-14 23:59:28'),
|
||||
(46, 'login_as_customer', 'customer', 'web', '2022-06-14 23:59:58', '2022-06-14 23:59:58'),
|
||||
(47, 'ban_customer', 'customer', 'web', '2022-06-15 00:00:12', '2022-06-15 00:00:12'),
|
||||
(48, 'delete_customer', 'customer', 'web', '2022-06-15 00:00:45', '2022-06-15 00:00:45'),
|
||||
(49, 'view_classified_products', 'customer', 'web', '2022-06-15 00:02:38', '2022-06-15 00:02:38'),
|
||||
(50, 'publish_classified_product', 'customer', 'web', '2022-06-15 00:06:23', '2022-06-15 00:06:23'),
|
||||
(51, 'delete_classified_product', 'customer', 'web', '2022-06-15 00:06:39', '2022-06-15 00:06:39'),
|
||||
(52, 'view_classified_packages', 'customer', 'web', '2022-06-15 00:08:11', '2022-06-15 00:08:11'),
|
||||
(53, 'add_classified_package', 'customer', 'web', '2022-06-15 00:08:22', '2022-06-15 00:08:22'),
|
||||
(54, 'edit_classified_package', 'customer', 'web', '2022-06-15 00:08:35', '2022-06-15 00:08:35'),
|
||||
(55, 'delete_classified_package', 'customer', 'web', '2022-06-15 00:08:44', '2022-06-15 00:08:44'),
|
||||
(56, 'view_all_seller', 'seller', 'web', '2022-06-15 18:49:56', '2022-06-15 18:49:56'),
|
||||
(57, 'view_seller_profile', 'seller', 'web', '2022-06-15 18:58:07', '2022-06-15 18:58:07'),
|
||||
(58, 'login_as_seller', 'seller', 'web', '2022-06-15 18:58:22', '2022-06-15 18:58:22'),
|
||||
(59, 'pay_to_seller', 'seller', 'web', '2022-06-15 20:21:28', '2022-06-15 20:21:28'),
|
||||
(60, 'seller_payment_history', 'seller', 'web', '2022-06-15 20:22:14', '2022-06-15 20:22:14'),
|
||||
(61, 'edit_seller', 'seller', 'web', '2022-06-15 20:22:28', '2022-06-15 20:22:28'),
|
||||
(62, 'delete_seller', 'seller', 'web', '2022-06-15 20:22:37', '2022-06-15 20:22:37'),
|
||||
(63, 'ban_seller', 'seller', 'web', '2022-06-15 20:22:48', '2022-06-15 20:22:48'),
|
||||
(64, 'approve_seller', 'seller', 'web', '2022-06-15 20:24:17', '2022-06-15 20:24:17'),
|
||||
(65, 'view_seller_payout_requests', 'seller', 'web', '2022-06-15 20:33:37', '2022-06-15 20:33:37'),
|
||||
(66, 'seller_commission_configuration', 'seller', 'web', '2022-06-15 20:37:18', '2022-06-15 20:37:18'),
|
||||
(67, 'seller_verification_form_configuration', 'seller', 'web', '2022-06-15 20:38:43', '2022-06-15 20:38:43'),
|
||||
(68, 'in_house_product_sale_report', 'report', 'web', '2022-06-18 21:43:02', '2022-06-18 21:43:02'),
|
||||
(69, 'seller_products_sale_report', 'report', 'web', '2022-06-18 21:43:32', '2022-06-18 21:43:32'),
|
||||
(70, 'products_stock_report', 'report', 'web', '2022-06-18 21:43:51', '2022-06-18 21:43:51'),
|
||||
(71, 'product_wishlist_report', 'report', 'web', '2022-06-18 21:46:18', '2022-06-18 21:46:18'),
|
||||
(72, 'user_search_report', 'report', 'web', '2022-06-18 21:46:39', '2022-06-18 21:46:39'),
|
||||
(73, 'commission_history_report', 'report', 'web', '2022-06-18 21:47:17', '2022-06-18 21:47:17'),
|
||||
(74, 'wallet_transaction_report', 'report', 'web', '2022-06-18 21:48:00', '2022-06-18 21:48:00'),
|
||||
(75, 'view_blogs', 'blog', 'web', '2022-06-19 06:08:14', '2022-06-19 06:08:14'),
|
||||
(76, 'add_blog', 'blog', 'web', '2022-06-19 06:08:43', '2022-06-19 06:08:43'),
|
||||
(77, 'edit_blog', 'blog', 'web', '2022-06-19 06:08:56', '2022-06-19 06:08:56'),
|
||||
(78, 'delete_blog', 'blog', 'web', '2022-06-19 06:09:08', '2022-06-19 06:09:08'),
|
||||
(79, 'publish_blog', 'blog', 'web', '2022-06-19 06:11:09', '2022-06-19 06:11:09'),
|
||||
(80, 'view_blog_categories', 'blog', 'web', '2022-06-19 06:12:55', '2022-06-19 06:12:55'),
|
||||
(81, 'add_blog_category', 'blog', 'web', '2022-06-19 06:13:24', '2022-06-19 06:13:24'),
|
||||
(82, 'edit_blog_category', 'blog', 'web', '2022-06-19 06:13:37', '2022-06-19 06:13:37'),
|
||||
(83, 'delete_blog_category', 'blog', 'web', '2022-06-19 06:14:06', '2022-06-19 06:14:06'),
|
||||
(84, 'view_all_flash_deals', 'marketing', 'web', '2022-06-19 07:18:52', '2022-06-19 07:18:52'),
|
||||
(85, 'add_flash_deal', 'marketing', 'web', '2022-06-19 07:19:22', '2022-06-19 07:19:22'),
|
||||
(86, 'edit_flash_deal', 'marketing', 'web', '2022-06-19 07:19:32', '2022-06-19 07:19:32'),
|
||||
(87, 'delete_flash_deal', 'marketing', 'web', '2022-06-19 07:19:44', '2022-06-19 07:19:44'),
|
||||
(88, 'publish_flash_deal', 'marketing', 'web', '2022-06-19 07:20:45', '2022-06-19 07:20:45'),
|
||||
(89, 'featured_flash_deal', 'marketing', 'web', '2022-06-19 07:23:07', '2022-06-19 07:23:07'),
|
||||
(90, 'view_all_coupons', 'marketing', 'web', '2022-06-19 07:23:47', '2022-06-19 07:23:47'),
|
||||
(91, 'add_coupon', 'marketing', 'web', '2022-06-19 07:24:07', '2022-06-19 07:24:07'),
|
||||
(92, 'edit_coupon', 'marketing', 'web', '2022-06-19 07:24:24', '2022-06-19 07:24:24'),
|
||||
(93, 'delete_coupon', 'marketing', 'web', '2022-06-19 07:24:34', '2022-06-19 07:24:34'),
|
||||
(94, 'send_newsletter', 'marketing', 'web', '2022-06-19 07:25:53', '2022-06-19 07:25:53'),
|
||||
(95, 'view_all_subscribers', 'marketing', 'web', '2022-06-19 07:32:13', '2022-06-19 07:32:13'),
|
||||
(96, 'delete_subscriber', 'marketing', 'web', '2022-06-19 07:32:35', '2022-06-19 07:32:35'),
|
||||
(97, 'view_all_support_tickets', 'support', 'web', '2022-06-19 23:31:53', '2022-06-19 23:31:53'),
|
||||
(98, 'reply_to_support_tickets', 'support', 'web', '2022-06-19 23:33:13', '2022-06-19 23:33:13'),
|
||||
(99, 'view_all_product_queries', 'support', 'web', '2022-06-19 23:38:45', '2022-06-19 23:38:45'),
|
||||
(100, 'reply_to_product_queries', 'support', 'web', '2022-06-19 23:40:02', '2022-06-19 23:40:02'),
|
||||
(101, 'delete_product_queries', 'support', 'web', '2022-06-19 23:40:48', '2022-06-19 23:40:48'),
|
||||
(102, 'header_setup', 'website_setup', 'web', '2022-06-19 23:45:24', '2022-06-19 23:45:24'),
|
||||
(103, 'footer_setup', 'website_setup', 'web', '2022-06-19 23:45:37', '2022-06-19 23:45:37'),
|
||||
(104, 'website_appearance', 'website_setup', 'web', '2022-06-19 23:46:49', '2022-06-19 23:46:49'),
|
||||
(105, 'view_all_website_pages', 'website_setup', 'web', '2022-06-19 23:50:04', '2022-06-19 23:50:04'),
|
||||
(106, 'add_website_page', 'website_setup', 'web', '2022-06-19 23:50:38', '2022-06-19 23:50:38'),
|
||||
(107, 'edit_website_page', 'website_setup', 'web', '2022-06-19 23:50:47', '2022-06-19 23:50:47'),
|
||||
(108, 'delete_website_page', 'website_setup', 'web', '2022-06-19 23:52:09', '2022-06-19 23:52:09'),
|
||||
(109, 'general_settings', 'setup_configurations', 'web', '2022-06-20 00:38:36', '2022-06-20 00:38:36'),
|
||||
(110, 'features_activation', 'setup_configurations', 'web', '2022-06-20 00:39:42', '2022-06-20 00:39:42'),
|
||||
(111, 'language_setup', 'setup_configurations', 'web', '2022-06-20 04:13:30', '2022-06-20 04:13:30'),
|
||||
(112, 'currency_setup', 'setup_configurations', 'web', '2022-06-20 04:14:33', '2022-06-20 04:14:33'),
|
||||
(113, 'vat_&_tax_setup', 'setup_configurations', 'web', '2022-06-20 04:15:21', '2022-06-20 04:15:21'),
|
||||
(114, 'pickup_point_setup', 'setup_configurations', 'web', '2022-06-20 04:15:46', '2022-06-20 04:15:46'),
|
||||
(115, 'smtp_settings', 'setup_configurations', 'web', '2022-06-20 04:16:05', '2022-06-20 04:16:05'),
|
||||
(116, 'payment_methods_configurations', 'setup_configurations', 'web', '2022-06-20 04:25:27', '2022-06-20 04:25:27'),
|
||||
(117, 'order_configuration', 'setup_configurations', 'web', '2022-06-20 04:26:26', '2022-06-20 04:26:26'),
|
||||
(118, 'file_system_&_cache_configuration', 'setup_configurations', 'web', '2022-06-20 04:26:59', '2022-06-20 04:26:59'),
|
||||
(119, 'social_media_logins', 'setup_configurations', 'web', '2022-06-20 04:27:22', '2022-06-20 04:27:22'),
|
||||
(120, 'facebook_chat', 'setup_configurations', 'web', '2022-06-20 04:28:31', '2022-06-20 04:28:31'),
|
||||
(121, 'facebook_comment', 'setup_configurations', 'web', '2022-06-20 04:28:51', '2022-06-20 04:28:51'),
|
||||
(122, 'analytics_tools_configuration', 'setup_configurations', 'web', '2022-06-20 04:29:57', '2022-06-20 04:29:57'),
|
||||
(123, 'google_recaptcha_configuration', 'setup_configurations', 'web', '2022-06-20 04:30:55', '2022-06-20 04:30:55'),
|
||||
(124, 'google_map_setting', 'setup_configurations', 'web', '2022-06-20 04:31:28', '2022-06-20 04:31:28'),
|
||||
(125, 'google_firebase_setting', 'setup_configurations', 'web', '2022-06-20 04:32:00', '2022-06-20 04:32:00'),
|
||||
(126, 'shipping_configuration', 'setup_configurations', 'web', '2022-06-20 04:41:29', '2022-06-20 04:41:29'),
|
||||
(127, 'shipping_country_setting', 'setup_configurations', 'web', '2022-06-20 04:42:14', '2022-06-20 04:42:14'),
|
||||
(128, 'manage_shipping_states', 'setup_configurations', 'web', '2022-06-20 04:43:43', '2022-06-20 04:43:43'),
|
||||
(129, 'manage_shipping_cities', 'setup_configurations', 'web', '2022-06-20 04:44:17', '2022-06-20 04:44:17'),
|
||||
(130, 'view_all_staffs', 'staff', 'web', '2022-06-20 04:45:00', '2022-06-20 04:45:00'),
|
||||
(131, 'add_staff', 'staff', 'web', '2022-06-20 04:45:09', '2022-06-20 04:45:09'),
|
||||
(132, 'edit_staff', 'staff', 'web', '2022-06-20 04:45:21', '2022-06-20 04:45:21'),
|
||||
(133, 'delete_staff', 'staff', 'web', '2022-06-20 04:45:36', '2022-06-20 04:45:36'),
|
||||
(134, 'view_staff_roles', 'staff', 'web', '2022-06-20 04:46:27', '2022-06-20 04:46:27'),
|
||||
(135, 'add_staff_role', 'staff', 'web', '2022-06-20 04:53:00', '2022-06-20 04:53:00'),
|
||||
(136, 'edit_staff_role', 'staff', 'web', '2022-06-20 04:53:11', '2022-06-20 04:53:11'),
|
||||
(137, 'delete_staff_role', 'staff', 'web', '2022-06-20 04:53:22', '2022-06-20 04:53:22'),
|
||||
(138, 'system_update', 'system', 'web', '2022-06-20 04:57:15', '2022-06-20 04:57:15'),
|
||||
(139, 'server_status', 'system', 'web', '2022-06-20 04:57:58', '2022-06-20 04:57:58'),
|
||||
(140, 'manage_addons', 'system', 'web', '2022-06-20 05:15:43', '2022-06-20 05:15:43'),
|
||||
(141, 'admin_dashboard', 'system', 'web', '2022-06-21 00:26:52', '2022-06-21 00:26:52'),
|
||||
(142, 'pos_manager', 'pos_system', 'web', '2022-06-21 01:46:20', '2022-06-21 01:46:20'),
|
||||
(143, 'pos_configuration', 'pos_system', 'web', '2022-06-21 01:56:00', '2022-06-21 01:56:00'),
|
||||
(144, 'view_all_auction_products', 'auction', 'web', '2022-06-21 02:05:54', '2022-06-21 02:05:54'),
|
||||
(145, 'view_inhouse_auction_products', 'auction', 'web', '2022-06-21 02:09:29', '2022-06-21 02:09:29'),
|
||||
(146, 'view_seller_auction_products', 'auction', 'web', '2022-06-21 02:09:51', '2022-06-21 02:09:51'),
|
||||
(147, 'add_auction_product', 'auction', 'web', '2022-06-21 02:11:19', '2022-06-21 02:11:19'),
|
||||
(148, 'edit_auction_product', 'auction', 'web', '2022-06-21 02:12:57', '2022-06-21 02:12:57'),
|
||||
(149, 'delete_auction_product', 'auction', 'web', '2022-06-21 02:17:35', '2022-06-21 02:17:35'),
|
||||
(150, 'view_auction_product_bids', 'auction', 'web', '2022-06-21 02:25:29', '2022-06-21 02:25:29'),
|
||||
(151, 'delete_auction_product_bids', 'auction', 'web', '2022-06-21 02:33:55', '2022-06-21 02:33:55'),
|
||||
(152, 'view_auction_product_orders', 'auction', 'web', '2022-06-21 02:44:11', '2022-06-21 02:44:11'),
|
||||
(153, 'view_all_wholesale_products', 'wholesale', 'web', '2022-06-21 04:06:26', '2022-06-21 04:06:26'),
|
||||
(154, 'view_inhouse_wholesale_products', 'wholesale', 'web', '2022-06-21 04:09:18', '2022-06-21 04:09:18'),
|
||||
(155, 'view_sellers_wholesale_products', 'wholesale', 'web', '2022-06-21 04:09:48', '2022-06-21 04:09:48'),
|
||||
(156, 'add_wholesale_product', 'wholesale', 'web', '2022-06-21 04:56:35', '2022-06-21 04:56:35'),
|
||||
(157, 'edit_wholesale_product', 'wholesale', 'web', '2022-06-21 04:56:55', '2022-06-21 04:56:55'),
|
||||
(158, 'delete_wholesale_product', 'wholesale', 'web', '2022-06-21 04:57:07', '2022-06-21 04:57:07'),
|
||||
(159, 'view_all_delivery_boy', 'delivery_boy', 'web', '2022-06-21 05:41:57', '2022-06-21 05:41:57'),
|
||||
(160, 'add_delivery_boy', 'delivery_boy', 'web', '2022-06-21 05:43:13', '2022-06-21 05:43:13'),
|
||||
(161, 'edit_delivery_boy', 'delivery_boy', 'web', '2022-06-21 05:43:32', '2022-06-21 05:43:32'),
|
||||
(162, 'ban_delivery_boy', 'delivery_boy', 'web', '2022-06-22 00:55:57', '2022-06-22 00:55:57'),
|
||||
(163, 'collect_from_delivery_boy', 'delivery_boy', 'web', '2022-06-22 00:58:23', '2022-06-22 00:58:23'),
|
||||
(164, 'pay_to_delivery_boy', 'delivery_boy', 'web', '2022-06-22 00:58:35', '2022-06-22 00:58:35'),
|
||||
(165, 'delivery_boy_payment_history', 'delivery_boy', 'web', '2022-06-22 01:38:43', '2022-06-22 01:38:43'),
|
||||
(166, 'collected_histories_from_delivery_boy', 'delivery_boy', 'web', '2022-06-22 01:40:04', '2022-06-22 01:40:04'),
|
||||
(167, 'order_cancle_request_by_delivery_boy', 'delivery_boy', 'web', '2022-06-22 02:06:37', '2022-06-22 02:06:37'),
|
||||
(168, 'delivery_boy_configuration', 'delivery_boy', 'web', '2022-06-22 02:07:07', '2022-06-22 02:07:07'),
|
||||
(169, 'view_refund_requests', 'refund_request', 'web', '2022-06-22 02:21:11', '2022-06-22 02:21:11'),
|
||||
(170, 'accept_refund_request', 'refund_request', 'web', '2022-06-22 02:21:55', '2022-06-22 02:21:55'),
|
||||
(171, 'reject_refund_request', 'refund_request', 'web', '2022-06-22 02:23:20', '2022-06-22 02:23:20'),
|
||||
(172, 'view_approved_refund_requests', 'refund_request', 'web', '2022-06-22 02:24:09', '2022-06-22 02:24:09'),
|
||||
(173, 'view_rejected_refund_requests', 'refund_request', 'web', '2022-06-22 02:33:40', '2022-06-22 02:33:40'),
|
||||
(174, 'refund_request_configuration', 'refund_request', 'web', '2022-06-22 02:34:21', '2022-06-22 02:34:21'),
|
||||
(175, 'affiliate_registration_form_config', 'affiliate_system', 'web', '2022-06-22 04:52:18', '2022-06-22 04:52:18'),
|
||||
(176, 'affiliate_configurations', 'affiliate_system', 'web', '2022-06-22 04:52:35', '2022-06-22 04:52:35'),
|
||||
(177, 'view_affiliate_users', 'affiliate_system', 'web', '2022-06-22 04:53:19', '2022-06-22 04:53:19'),
|
||||
(178, 'pay_to_affiliate_user', 'affiliate_system', 'web', '2022-06-22 04:54:49', '2022-06-22 04:54:49'),
|
||||
(179, 'affiliate_users_payment_history', 'affiliate_system', 'web', '2022-06-22 04:55:51', '2022-06-22 04:55:51'),
|
||||
(180, 'view_all_referral_users', 'affiliate_system', 'web', '2022-06-22 04:56:46', '2022-06-22 04:56:46'),
|
||||
(181, 'view_affiliate_withdraw_requests', 'affiliate_system', 'web', '2022-06-22 04:58:01', '2022-06-22 04:58:01'),
|
||||
(182, 'accept_affiliate_withdraw_requests', 'affiliate_system', 'web', '2022-06-22 04:59:38', '2022-06-22 04:59:38'),
|
||||
(183, 'reject_affiliate_withdraw_request', 'affiliate_system', 'web', '2022-06-22 05:00:04', '2022-06-22 05:00:04'),
|
||||
(184, 'view_affiliate_logs', 'affiliate_system', 'web', '2022-06-22 05:00:51', '2022-06-22 05:00:51'),
|
||||
(185, 'view_all_manual_payment_methods', 'offline_payment', 'web', '2022-06-22 05:02:50', '2022-06-22 05:02:50'),
|
||||
(186, 'add_manual_payment_method', 'offline_payment', 'web', '2022-06-22 05:03:25', '2022-06-22 05:03:25'),
|
||||
(187, 'edit_manual_payment_method', 'offline_payment', 'web', '2022-06-22 05:03:56', '2022-06-22 05:03:56'),
|
||||
(188, 'delete_manual_payment_method', 'offline_payment', 'web', '2022-06-22 05:04:10', '2022-06-22 05:04:10'),
|
||||
(189, 'view_all_offline_wallet_recharges', 'offline_payment', 'web', '2022-06-22 05:09:09', '2022-06-22 05:09:09'),
|
||||
(190, 'approve_offline_wallet_recharge', 'offline_payment', 'web', '2022-06-22 05:11:29', '2022-06-22 05:11:29'),
|
||||
(191, 'view_all_offline_customer_package_payments', 'offline_payment', 'web', '2022-06-22 05:12:49', '2022-06-22 05:12:49'),
|
||||
(192, 'approve_offline_customer_package_payment', 'offline_payment', 'web', '2022-06-22 05:13:24', '2022-06-22 05:13:24'),
|
||||
(193, 'view_all_offline_seller_package_payments', 'offline_payment', 'web', '2022-06-22 05:14:02', '2022-06-22 05:14:02'),
|
||||
(194, 'approve_offline_seller_package_payment', 'offline_payment', 'web', '2022-06-22 05:14:29', '2022-06-22 05:14:29'),
|
||||
(195, 'asian_payment_gateway_configuration', 'paytm', 'web', '2022-06-22 05:15:56', '2022-06-22 05:15:56'),
|
||||
(196, 'club_point_configurations', 'club_point', 'web', '2022-06-22 05:16:57', '2022-06-22 05:16:57'),
|
||||
(197, 'set_club_points', 'club_point', 'web', '2022-06-22 05:17:21', '2022-06-22 05:17:21'),
|
||||
(198, 'view_users_club_points', 'club_point', 'web', '2022-06-22 05:18:14', '2022-06-22 05:18:14'),
|
||||
(199, 'otp_configurations', 'otp_system', 'web', '2022-06-22 06:07:28', '2022-06-22 06:07:28'),
|
||||
(200, 'sms_templates', 'otp_system', 'web', '2022-06-22 06:08:13', '2022-06-22 06:08:13'),
|
||||
(201, 'sms_providers_configurations', 'otp_system', 'web', '2022-06-22 06:08:44', '2022-06-22 06:08:44'),
|
||||
(202, 'african_pg_configuration', 'african_pg', 'web', '2022-06-22 06:13:41', '2022-06-22 06:13:41'),
|
||||
(203, 'african_pg_credentials_configuration', 'african_pg', 'web', '2022-06-22 06:16:12', '2022-06-22 06:16:12'),
|
||||
(204, 'view_all_seller_packages', 'seller_subscription', 'web', '2022-06-22 06:17:45', '2022-06-22 06:17:45'),
|
||||
(205, 'add_seller_package', 'seller_subscription', 'web', '2022-06-22 06:18:14', '2022-06-22 06:18:14'),
|
||||
(206, 'edit_seller_package', 'seller_subscription', 'web', '2022-06-22 06:18:24', '2022-06-22 06:18:24'),
|
||||
(207, 'delete_seller_package', 'seller_subscription', 'web', '2022-06-22 06:18:36', '2022-06-22 06:18:36'),
|
||||
(208, 'send_bulk_sms', 'otp_system', 'web', '2022-06-22 06:19:06', '2022-06-22 06:19:06'),
|
||||
(209, 'assign_delivery_boy_for_orders', 'delivery_boy', 'web', '2022-06-22 06:20:16', '2022-06-22 06:20:16'),
|
||||
(210, 'manage_zones', 'setup_configurations', 'web', '2022-06-22 06:20:16', '2022-06-22 06:20:16'),
|
||||
(211, 'manage_carriers', 'setup_configurations', 'web', '2022-06-22 06:20:16', '2022-06-22 06:20:16');
|
||||
|
||||
|
||||
ALTER TABLE `permissions`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
ALTER TABLE `permissions`
|
||||
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;
|
||||
|
||||
-- role_has_permissions
|
||||
CREATE TABLE `role_has_permissions` (
|
||||
`permission_id` bigint(20) UNSIGNED NOT NULL,
|
||||
`role_id` bigint(20) UNSIGNED NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
ALTER TABLE `role_has_permissions`
|
||||
ADD PRIMARY KEY (`permission_id`,`role_id`),
|
||||
ADD KEY `role_has_permissions_role_id_foreign` (`role_id`);
|
||||
|
||||
ALTER TABLE `role_has_permissions`
|
||||
ADD CONSTRAINT `role_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE,
|
||||
ADD CONSTRAINT `role_has_permissions_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
|
||||
|
||||
|
||||
-- model_has_permissions
|
||||
CREATE TABLE `model_has_permissions` (
|
||||
`permission_id` bigint(20) UNSIGNED NOT NULL,
|
||||
`model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`model_id` bigint(20) UNSIGNED NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
ALTER TABLE `model_has_permissions`
|
||||
ADD PRIMARY KEY (`permission_id`,`model_id`,`model_type`),
|
||||
ADD KEY `model_has_permissions_model_id_model_type_index` (`model_id`,`model_type`);
|
||||
|
||||
ALTER TABLE `model_has_permissions`
|
||||
ADD CONSTRAINT `model_has_permissions_permission_id_foreign` FOREIGN KEY (`permission_id`) REFERENCES `permissions` (`id`) ON DELETE CASCADE;
|
||||
|
||||
-- model_has_roles
|
||||
CREATE TABLE `model_has_roles` (
|
||||
`role_id` bigint(20) UNSIGNED NOT NULL,
|
||||
`model_type` varchar(191) COLLATE utf8mb4_unicode_ci NOT NULL,
|
||||
`model_id` bigint(20) UNSIGNED NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
|
||||
|
||||
ALTER TABLE `model_has_roles`
|
||||
ADD PRIMARY KEY (`role_id`,`model_id`,`model_type`),
|
||||
ADD KEY `model_has_roles_model_id_model_type_index` (`model_id`,`model_type`);
|
||||
|
||||
ALTER TABLE `model_has_roles`
|
||||
ADD CONSTRAINT `model_has_roles_role_id_foreign` FOREIGN KEY (`role_id`) REFERENCES `roles` (`id`) ON DELETE CASCADE;
|
||||
|
||||
|
||||
UPDATE `business_settings` SET `value` = '6.3.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
10
desarrollo2/sqlupdates/v631.sql
Normal file
10
desarrollo2/sqlupdates/v631.sql
Normal file
@@ -0,0 +1,10 @@
|
||||
INSERT INTO `permissions` (`id`, `name`, `section`, `guard_name`, `created_at`, `updated_at`) VALUES
|
||||
(NULL, 'view_all_product_conversations', 'support', 'web', '2022-06-22 06:20:16', '2022-06-22 06:20:16'),
|
||||
(NULL, 'reply_to_product_conversations', 'support', 'web', '2022-06-22 06:20:16', '2022-06-22 06:20:16'),
|
||||
(NULL, 'delete_product_conversations', 'support', 'web', '2022-06-22 06:20:16', '2022-06-22 06:20:16');
|
||||
|
||||
DELETE FROM `permissions` WHERE `name`='delete_product_queries';
|
||||
|
||||
UPDATE `business_settings` SET `value` = '6.3.1' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
7
desarrollo2/sqlupdates/v632.sql
Normal file
7
desarrollo2/sqlupdates/v632.sql
Normal file
@@ -0,0 +1,7 @@
|
||||
ALTER TABLE `carrier_ranges` CHANGE `delimiter1` `delimiter1` DOUBLE(25,2) NOT NULL, CHANGE `delimiter2` `delimiter2` DOUBLE(25,2) NOT NULL;
|
||||
INSERT INTO `business_settings` (`id`, `type`, `value`, `lang`, `created_at`, `updated_at`) VALUES (NULL, 'item_name', 'eCommerce', NULL, '2022-04-17 12:57:17', '2022-04-17 12:57:17');
|
||||
|
||||
|
||||
UPDATE `business_settings` SET `value` = '6.3.2' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v633.sql
Normal file
3
desarrollo2/sqlupdates/v633.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '6.3.3' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
8
desarrollo2/sqlupdates/v640.sql
Normal file
8
desarrollo2/sqlupdates/v640.sql
Normal file
@@ -0,0 +1,8 @@
|
||||
ALTER TABLE `shops` CHANGE `delivery_pickup_latitude` `delivery_pickup_latitude` FLOAT(17,15) NULL DEFAULT NULL, CHANGE `delivery_pickup_longitude` `delivery_pickup_longitude` FLOAT(17,15) NULL DEFAULT NULL;
|
||||
ALTER TABLE `addresses` CHANGE `longitude` `longitude` FLOAT(17,15) NULL DEFAULT NULL, CHANGE `latitude` `latitude` FLOAT(17,15) NULL DEFAULT NULL;
|
||||
ALTER TABLE `users` ADD `provider` VARCHAR(255) NULL DEFAULT NULL AFTER `referred_by`;
|
||||
ALTER TABLE `users` ADD `refresh_token` TEXT NULL DEFAULT NULL AFTER `provider_id`, ADD `access_token` LONGTEXT NULL DEFAULT NULL AFTER `refresh_token`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '6.4.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
5
desarrollo2/sqlupdates/v650.sql
Normal file
5
desarrollo2/sqlupdates/v650.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE `order_details` ADD `earn_point` DOUBLE(25,2) NOT NULL DEFAULT '0.00' AFTER `product_referral_code`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '6.5.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
17
desarrollo2/sqlupdates/v700.sql
Normal file
17
desarrollo2/sqlupdates/v700.sql
Normal file
@@ -0,0 +1,17 @@
|
||||
ALTER TABLE `reviews` ADD `photos` VARCHAR(191) NULL DEFAULT NULL AFTER `comment`;
|
||||
|
||||
CREATE TABLE `follow_sellers` (
|
||||
`user_id` bigint(20) NOT NULL,
|
||||
`shop_id` bigint(20) NOT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
|
||||
|
||||
ALTER TABLE `categories` ADD `cover_image` VARCHAR(100) NULL DEFAULT NULL AFTER `icon`;
|
||||
|
||||
ALTER TABLE `shops` ADD `top_banner` VARCHAR(191) NULL DEFAULT NULL AFTER `sliders`,
|
||||
ADD `banner_full_width_1` VARCHAR(191) NULL DEFAULT NULL AFTER `top_banner`,
|
||||
ADD `banners_half_width` VARCHAR(191) NULL DEFAULT NULL AFTER `banner_full_width_1`,
|
||||
ADD `banner_full_width_2` VARCHAR(191) NULL DEFAULT NULL AFTER `banners_half_width`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '7.0.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v710.sql
Normal file
3
desarrollo2/sqlupdates/v710.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '7.1.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v720.sql
Normal file
3
desarrollo2/sqlupdates/v720.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '7.2.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
5
desarrollo2/sqlupdates/v730.sql
Normal file
5
desarrollo2/sqlupdates/v730.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE `tickets` CHANGE `code` `code` BIGINT(23) NOT NULL;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '7.3.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
5
desarrollo2/sqlupdates/v740.sql
Normal file
5
desarrollo2/sqlupdates/v740.sql
Normal file
@@ -0,0 +1,5 @@
|
||||
ALTER TABLE `orders` ADD `order_from` VARCHAR(20) NOT NULL DEFAULT 'web' AFTER `shipping_type`;
|
||||
|
||||
UPDATE `business_settings` SET `value` = '7.4.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v750.sql
Normal file
3
desarrollo2/sqlupdates/v750.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '7.5.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
3
desarrollo2/sqlupdates/v760.sql
Normal file
3
desarrollo2/sqlupdates/v760.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
UPDATE `business_settings` SET `value` = '7.6.0' WHERE `business_settings`.`type` = 'current_version';
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user