v50.sql 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. UPDATE `business_settings` SET `value` = '5.0' WHERE `business_settings`.`type` = 'current_version';
  2. CREATE TABLE `firebase_notifications` (
  3. `id` int(11) NOT NULL,
  4. `item_type` varchar(255) NOT NULL,
  5. `item_type_id` int(11) NOT NULL,
  6. `receiver_id` int(11) NOT NULL,
  7. `is_read` tinyint(1) NOT NULL,
  8. `created_at` timestamp NOT NULL DEFAULT current_timestamp(),
  9. `updated_at` timestamp NOT NULL DEFAULT current_timestamp()
  10. ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
  11. --
  12. -- Indexes for dumped tables
  13. --
  14. --
  15. -- Indexes for table `firebase_notification`
  16. --
  17. ALTER TABLE `firebase_notifications`
  18. ADD PRIMARY KEY (`id`);
  19. --
  20. -- AUTO_INCREMENT for dumped tables
  21. --
  22. --
  23. -- AUTO_INCREMENT for table `firebase_notification`
  24. --
  25. ALTER TABLE `firebase_notifications`
  26. MODIFY `id` int(11) NOT NULL AUTO_INCREMENT;
  27. ALTER TABLE `firebase_notifications` CHANGE `is_read` `is_read` TINYINT(1) NOT NULL DEFAULT '0';
  28. ALTER TABLE `firebase_notifications` ADD `title` VARCHAR(255) NULL DEFAULT NULL AFTER `id`;
  29. ALTER TABLE `firebase_notifications` ADD `text` TEXT NULL DEFAULT NULL AFTER `title`;
  30. COMMIT;