codigo actual del servidor, con avances de joan

This commit is contained in:
Jose Sanchez
2023-08-07 15:52:04 -04:00
commit 3cd9b8bbe8
3070 changed files with 532255 additions and 0 deletions

29
sqlupdates/v43.sql Normal file
View 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;