-- This file is automatically generated using maintenance/generateSchemaSql.php.
-- Source: extensions/MediaUploader/sql/tables.json
-- Do not modify this file directly.
-- See https://www.mediawiki.org/wiki/Manual:Schema_changes
CREATE TABLE /*_*/mu_campaign (
  campaign_page_id INTEGER UNSIGNED NOT NULL,
  campaign_enabled INTEGER DEFAULT 0 NOT NULL,
  campaign_validity INTEGER NOT NULL,
  campaign_content BLOB DEFAULT NULL,
  PRIMARY KEY(campaign_page_id)
);

CREATE UNIQUE INDEX mu_campaign_page ON /*_*/mu_campaign (campaign_page_id);

CREATE INDEX mu_campaign_enabled ON /*_*/mu_campaign (
  campaign_enabled, campaign_page_id
);
