summaryrefslogtreecommitdiff
path: root/www/wiki/maintenance/postgres/archives/patch-site_stats-modify.sql
diff options
context:
space:
mode:
Diffstat (limited to 'www/wiki/maintenance/postgres/archives/patch-site_stats-modify.sql')
-rw-r--r--www/wiki/maintenance/postgres/archives/patch-site_stats-modify.sql7
1 files changed, 7 insertions, 0 deletions
diff --git a/www/wiki/maintenance/postgres/archives/patch-site_stats-modify.sql b/www/wiki/maintenance/postgres/archives/patch-site_stats-modify.sql
new file mode 100644
index 00000000..1c784d9b
--- /dev/null
+++ b/www/wiki/maintenance/postgres/archives/patch-site_stats-modify.sql
@@ -0,0 +1,7 @@
+ALTER TABLE /*_*/site_stats
+ ALTER ss_total_edits SET DEFAULT NULL,
+ ALTER ss_good_articles SET DEFAULT NULL,
+ ALTER ss_total_pages SET DEFAULT NULL,
+ ALTER ss_users SET DEFAULT NULL,
+ ALTER ss_active_users SET DEFAULT NULL,
+ ALTER ss_images SET DEFAULT NULL;