7.7-update.sql 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. SET NAMES utf8;
  2. SET time_zone = '+00:00';
  3. SET foreign_key_checks = 0;
  4. SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO';
  5. ALTER TABLE `{%TABLE_PREFIX%}advertising`
  6. ADD `category_ids` TEXT
  7. COLLATE 'utf8_general_ci' NOT NULL
  8. AFTER `name`;
  9. INSERT INTO `{%TABLE_PREFIX%}settings`
  10. (`name`, `value`) VALUES
  11. ('address_display_format', 'default');
  12. CREATE TABLE `{%TABLE_PREFIX%}blocked_users` (
  13. `id` INT(11) NOT NULL AUTO_INCREMENT,
  14. `user_id` INT(11) DEFAULT NULL,
  15. `type` VARCHAR(255) NOT NULL,
  16. `value` VARCHAR(255) NOT NULL,
  17. `blocked_actions` TEXT NOT NULL,
  18. `block_reason` TEXT NOT NULL,
  19. `show_reason` TINYINT(4) NOT NULL,
  20. `created_at` DATETIME NOT NULL,
  21. `updated_at` DATETIME DEFAULT NULL,
  22. PRIMARY KEY (`id`),
  23. KEY `user_id` (`user_id`),
  24. CONSTRAINT `{%TABLE_PREFIX%}blocked_users_ibfk_1` FOREIGN KEY (`user_id`) REFERENCES `{%TABLE_PREFIX%}users` (`id`)
  25. ON DELETE CASCADE
  26. )
  27. ENGINE = InnoDB
  28. DEFAULT CHARSET = utf8;