summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/AbuseFilter/db_patches/patch-abuse_filter_history.sql
diff options
context:
space:
mode:
authorYaco <franco@reevo.org>2020-06-04 11:01:00 -0300
committerYaco <franco@reevo.org>2020-06-04 11:01:00 -0300
commitfc7369835258467bf97eb64f184b93691f9a9fd5 (patch)
treedaabd60089d2dd76d9f5fb416b005fbe159c799d /www/wiki/extensions/AbuseFilter/db_patches/patch-abuse_filter_history.sql
first commit
Diffstat (limited to 'www/wiki/extensions/AbuseFilter/db_patches/patch-abuse_filter_history.sql')
-rw-r--r--www/wiki/extensions/AbuseFilter/db_patches/patch-abuse_filter_history.sql20
1 files changed, 20 insertions, 0 deletions
diff --git a/www/wiki/extensions/AbuseFilter/db_patches/patch-abuse_filter_history.sql b/www/wiki/extensions/AbuseFilter/db_patches/patch-abuse_filter_history.sql
new file mode 100644
index 00000000..0cd7f07a
--- /dev/null
+++ b/www/wiki/extensions/AbuseFilter/db_patches/patch-abuse_filter_history.sql
@@ -0,0 +1,20 @@
+-- Patch to add abuse_filter_history table
+
+CREATE TABLE /*$wgDBprefix*/abuse_filter_history (
+ afh_id BIGINT unsigned NOT NULL AUTO_INCREMENT,
+ afh_filter BIGINT unsigned NOT NULL,
+ afh_user BIGINT unsigned NOT NULL,
+ afh_user_text varchar(255) binary NOT NULL,
+ afh_timestamp binary(14) NOT NULL,
+ afh_pattern BLOB NOT NULL,
+ afh_comments BLOB NOT NULL,
+ afh_flags TINYBLOB NOT NULL,
+ afh_public_comments TINYBLOB,
+ afh_actions BLOB,
+
+ PRIMARY KEY (afh_id),
+ KEY (afh_filter),
+ KEY (afh_user),
+ KEY (afh_user_text),
+ KEY (afh_timestamp)
+) /*$wgDBTableOptions*/;