openvk/install/sqls/00038-noSpam-templates.sql
Jill 6159262026
Add reports (#634)
* Reports: [INDEV] Undone implementation of reports

* Reports: Backend is done

* Reports: Still makin it...

* Reports: Added report window

* Reports: Corrected the content type

* Reports: Make it work

* Reports: Minor fixes and localization

* Reports: Ability to hide Share and Like buttons

Also renamed the .sql file

* Revent some changes from 8f8d7bb

I will move them to the master branch

* Reports: Only for those who can access Helpdesk

* Reports: Modified the route

* Reports: Change the routes

* Reports: Show reports count

* Report: Fix URL

* Обновление репортов (#715)

* Репорты живы

* 2

* Better reports

* Логи

* Update DBEntity.updated.php

* noSpam

* Сбор IP и UserAgent + фикс логирования в IPs

* Новые поля для поиска etc.

* Fixes

* Fixes and enhancements

* Поиск по нескольким разделам

* Reports enhancements

* Совместимость с новыми логами

* Совместимость с новыми логами

* Update Logs.xml

* Update Logs.xml

* Logs i18n

* Update Logs.xml

* Update AdminPresenter.php

---------

Co-authored-by: veselcraft <veselcraft@icloud.com>
Co-authored-by: Ilya Prokopenko <55238545+Xenforce@users.noreply.github.com>
Co-authored-by: n1rwana <aydashkin@vk.com>
2023-08-11 16:50:19 +03:00

21 lines
886 B
SQL

CREATE TABLE `noSpam_templates`
(
`id` bigint(20) UNSIGNED NOT NULL,
`user` bigint(20) UNSIGNED NOT NULL,
`model` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`regex` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`request` longtext COLLATE utf8mb4_unicode_ci DEFAULT NULL,
`ban_type` tinyint(4) NOT NULL,
`count` bigint(20) NOT NULL,
`time` bigint(20) UNSIGNED NOT NULL,
`items` longtext COLLATE utf8mb4_unicode_ci NOT NULL,
`rollback` tinyint(1) DEFAULT NULL
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4
COLLATE = utf8mb4_unicode_ci;
ALTER TABLE `noSpam_templates`
ADD PRIMARY KEY (`id`);
ALTER TABLE `noSpam_templates`
MODIFY `id` bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT;