v33.sql 1.1 KB

1234567891011121314151617181920212223242526
  1. ALTER TABLE `users` ADD `banned` TINYINT NOT NULL DEFAULT '0' AFTER `balance`;
  2. ALTER TABLE `general_settings` ADD `footer_logo` VARCHAR(255) NULL DEFAULT NULL AFTER `logo`;
  3. CREATE TABLE `customer_package_payments` (
  4. `id` int(11) NOT NULL,
  5. `user_id` int(11) NOT NULL,
  6. `customer_package_id` int(11) NOT NULL,
  7. `payment_method` varchar(255) COLLATE utf8_unicode_ci NOT NULL,
  8. `payment_details` longtext COLLATE utf8_unicode_ci NOT NULL,
  9. `approval` int(1) NOT NULL,
  10. `offline_payment` int(1) NOT NULL COMMENT '1=offline payment\r\n2=online paymnet',
  11. `reciept` varchar(150) COLLATE utf8_unicode_ci NOT NULL,
  12. `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  13. `updated_at` timestamp NOT NULL DEFAULT current_timestamp()
  14. ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;
  15. ALTER TABLE `customer_package_payments`
  16. ADD PRIMARY KEY (`id`);
  17. ALTER TABLE `customer_package_payments`
  18. MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  19. UPDATE `business_settings` SET `value` = '3.3' WHERE `business_settings`.`type` = 'current_version';
  20. COMMIT;