Acceptance Criteria:
- Define the updated database schema for storing wikis of event
- Implement a schema change for it
- Existing events must be treated as if "no wikis" was chosen
- Create the schema in production and beta
Checklist
- Design the schema
- Make schema change patch for it
- Get initial reviews (+1s)
- Tag this task with DBA
- Request DBA signoff
- Get approval
Deployment
- Merge the schema patch
- This will automatically create the new table in beta
- Wait until the patch reaches production
- Schedule a dedicated deployment window, note the time here
- Create the table everywhere:
- mwscript sql.php --wiki=testwiki --cluster=extension1 /srv/mediawiki/php-1.44.0-wmf.1/extensions/CampaignEvents/db_patches/mysql/patch-add-ce_event_wikis.sql
- mwscript sql.php --wiki=test2wiki --cluster=extension1 /srv/mediawiki/php-1.44.0-wmf.11/extensions/CampaignEvents/db_patches/mysql/patch-add-ce_event_wikis.sql
- mwscript sql.php --wiki=officewiki --cluster=extension1 /srv/mediawiki/php-1.44.0-wmf.11/extensions/CampaignEvents/db_patches/mysql/patch-add-ce_event_wikis.sql
- mwscript sql.php --wiki=metawiki --cluster=extension1 --wikidb wikishared /srv/mediawiki/php-1.44.0-wmf.11/extensions/CampaignEvents/db_patches/mysql/patch-add-ce_event_wikis.sql