Subiendo proyecto completo sin restricciones de git ignore
This commit is contained in:
1
temp/s3JYqymhiB/addons/delivery_boy/sql/1.1.sql
Normal file
1
temp/s3JYqymhiB/addons/delivery_boy/sql/1.1.sql
Normal file
@@ -0,0 +1 @@
|
||||
COMMIT;
|
||||
65
temp/s3JYqymhiB/addons/delivery_boy/sql/1.2.sql
Normal file
65
temp/s3JYqymhiB/addons/delivery_boy/sql/1.2.sql
Normal file
@@ -0,0 +1,65 @@
|
||||
--
|
||||
-- Table structure for table `delivery_boy_payments`
|
||||
--
|
||||
|
||||
CREATE TABLE `delivery_boy_payments` (
|
||||
`id` int(11) NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`payment` 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 dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `delivery_boy_payments`
|
||||
--
|
||||
ALTER TABLE `delivery_boy_payments`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `delivery_boy_payments`
|
||||
--
|
||||
ALTER TABLE `delivery_boy_payments`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
--
|
||||
-- Table structure for table `delivery_boy_collections`
|
||||
--
|
||||
|
||||
CREATE TABLE `delivery_boy_collections` (
|
||||
`id` int(11) NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`collection_amount` 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 dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `delivery_boy_collections`
|
||||
--
|
||||
ALTER TABLE `delivery_boy_collections`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `delivery_boy_collections`
|
||||
--
|
||||
ALTER TABLE `delivery_boy_collections`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
COMMIT;
|
||||
3
temp/s3JYqymhiB/addons/delivery_boy/sql/1.3.sql
Normal file
3
temp/s3JYqymhiB/addons/delivery_boy/sql/1.3.sql
Normal file
@@ -0,0 +1,3 @@
|
||||
ALTER TABLE `users` ADD `state` VARCHAR(30) NULL DEFAULT NULL AFTER `country`;
|
||||
|
||||
COMMIT;
|
||||
1
temp/s3JYqymhiB/addons/delivery_boy/sql/2.0.sql
Normal file
1
temp/s3JYqymhiB/addons/delivery_boy/sql/2.0.sql
Normal file
@@ -0,0 +1 @@
|
||||
COMMIT;
|
||||
1
temp/s3JYqymhiB/addons/delivery_boy/sql/2.1.sql
Normal file
1
temp/s3JYqymhiB/addons/delivery_boy/sql/2.1.sql
Normal file
@@ -0,0 +1 @@
|
||||
COMMIT;
|
||||
1
temp/s3JYqymhiB/addons/delivery_boy/sql/2.2.sql
Normal file
1
temp/s3JYqymhiB/addons/delivery_boy/sql/2.2.sql
Normal file
@@ -0,0 +1 @@
|
||||
COMMIT;
|
||||
1
temp/s3JYqymhiB/addons/delivery_boy/sql/3.3.sql
Normal file
1
temp/s3JYqymhiB/addons/delivery_boy/sql/3.3.sql
Normal file
@@ -0,0 +1 @@
|
||||
COMMIT;
|
||||
1
temp/s3JYqymhiB/addons/delivery_boy/sql/3.4.sql
Normal file
1
temp/s3JYqymhiB/addons/delivery_boy/sql/3.4.sql
Normal file
@@ -0,0 +1 @@
|
||||
COMMIT;
|
||||
1
temp/s3JYqymhiB/addons/delivery_boy/sql/3.5.sql
Normal file
1
temp/s3JYqymhiB/addons/delivery_boy/sql/3.5.sql
Normal file
@@ -0,0 +1 @@
|
||||
COMMIT;
|
||||
1
temp/s3JYqymhiB/addons/delivery_boy/sql/3.6.sql
Normal file
1
temp/s3JYqymhiB/addons/delivery_boy/sql/3.6.sql
Normal file
@@ -0,0 +1 @@
|
||||
COMMIT;
|
||||
148
temp/s3JYqymhiB/addons/delivery_boy/sql/update.sql
Normal file
148
temp/s3JYqymhiB/addons/delivery_boy/sql/update.sql
Normal file
@@ -0,0 +1,148 @@
|
||||
--
|
||||
-- Table structure for table `delivery_boys`
|
||||
--
|
||||
|
||||
CREATE TABLE `delivery_boys` (
|
||||
`id` int(11) NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`total_collection` double(25,2) NOT NULL DEFAULT 0.00,
|
||||
`earning` double(25,2) NOT NULL DEFAULT 0.00,
|
||||
`monthly_salary` double(25,2) DEFAULT NULL,
|
||||
`order_commission` double(25,2) 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 `delivery_boys`
|
||||
--
|
||||
ALTER TABLE `delivery_boys`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `delivery_boys`
|
||||
--
|
||||
ALTER TABLE `delivery_boys`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
|
||||
|
||||
ALTER TABLE `users` CHANGE `user_type` `user_type` VARCHAR(20) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT 'customer';
|
||||
ALTER TABLE `orders` ADD COLUMN IF NOT EXISTS `assign_delivery_boy` INT(11) NULL DEFAULT NULL AFTER `seller_id`;
|
||||
|
||||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
|
||||
START TRANSACTION;
|
||||
SET time_zone = "+00:00";
|
||||
|
||||
|
||||
--
|
||||
-- Table structure for table `delivery_histories`
|
||||
--
|
||||
|
||||
CREATE TABLE `delivery_histories` (
|
||||
`id` int(11) NOT NULL,
|
||||
`delivery_boy_id` int(11) NOT NULL,
|
||||
`order_id` int(11) NOT NULL,
|
||||
`delivery_status` varchar(255) NOT NULL,
|
||||
`payment_type` varchar(20) NOT NULL,
|
||||
`created_at` timestamp NOT NULL DEFAULT current_timestamp(),
|
||||
`updated_at` timestamp NOT NULL DEFAULT current_timestamp()
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
ALTER TABLE `delivery_histories`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `delivery_histories`
|
||||
--
|
||||
ALTER TABLE `delivery_histories`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
ALTER TABLE `delivery_boys` CHANGE `earning` `total_earning` DOUBLE(25,2) NOT NULL DEFAULT '0.00';
|
||||
|
||||
ALTER TABLE `orders` ADD COLUMN IF NOT EXISTS `cancel_request` TINYINT(1) NOT NULL DEFAULT '0' AFTER `delivery_viewed`;
|
||||
|
||||
ALTER TABLE `orders` ADD COLUMN IF NOT EXISTS `cancel_request_at` TINYINT(1) NOT NULL DEFAULT '0' AFTER `cancel_request`;
|
||||
|
||||
ALTER TABLE `delivery_histories` ADD `earning` DOUBLE(25,2) NOT NULL DEFAULT '0.00' AFTER `payment_type`, ADD `collection` DOUBLE(25,2) NOT NULL DEFAULT '0.00' AFTER `earning`;
|
||||
ALTER TABLE `delivery_histories` CHANGE `delivery_boy_id` `delivery_boy_id` INT(11) NULL DEFAULT NULL;
|
||||
ALTER TABLE `orders` ADD COLUMN IF NOT EXISTS `delivery_history_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP AFTER `commission_calculated`;
|
||||
|
||||
|
||||
|
||||
--
|
||||
-- Table structure for table `delivery_boy_payments`
|
||||
--
|
||||
|
||||
CREATE TABLE `delivery_boy_payments` (
|
||||
`id` int(11) NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`payment` 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 dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `delivery_boy_payments`
|
||||
--
|
||||
ALTER TABLE `delivery_boy_payments`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `delivery_boy_payments`
|
||||
--
|
||||
ALTER TABLE `delivery_boy_payments`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
--
|
||||
-- Table structure for table `delivery_boy_collections`
|
||||
--
|
||||
|
||||
CREATE TABLE `delivery_boy_collections` (
|
||||
`id` int(11) NOT NULL,
|
||||
`user_id` int(11) NOT NULL,
|
||||
`collection_amount` 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 dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- Indexes for table `delivery_boy_collections`
|
||||
--
|
||||
ALTER TABLE `delivery_boy_collections`
|
||||
ADD PRIMARY KEY (`id`);
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for dumped tables
|
||||
--
|
||||
|
||||
--
|
||||
-- AUTO_INCREMENT for table `delivery_boy_collections`
|
||||
--
|
||||
ALTER TABLE `delivery_boy_collections`
|
||||
MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
|
||||
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user