summaryrefslogtreecommitdiff
path: root/maintenance/ibm_db2/patch-ss_active_users.sql
blob: f0e6d145a40f41d28eaa5e01a4909004ce3931a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
CREATE TABLE site_stats (
  ss_row_id         BIGINT	  NOT NULL  UNIQUE,
  ss_total_views    BIGINT            DEFAULT 0,
  ss_total_edits    BIGINT            DEFAULT 0,
  ss_good_articles  BIGINT             DEFAULT 0,
  ss_total_pages    INTEGER            DEFAULT -1,
  ss_users          INTEGER            DEFAULT -1,
  ss_active_users   INTEGER            DEFAULT -1,
  ss_admins         INTEGER            DEFAULT -1,
  ss_images         INTEGER            DEFAULT 0
);