Add constants for schema migration feature flags
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 6 Jun 2017 17:39:14 +0000 (13:39 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Wed, 7 Jun 2017 13:38:46 +0000 (09:38 -0400)
commit1acb816a476777d2b8b03d5e3627789e2aa3994a
tree91013f431882410bc5f10160e6303cb215044550
parentf4c49155719926525b5a84c8cc1727acd4925fcb
Add constants for schema migration feature flags

A general behavior is to progress through four stages:
* Access only the old schema (until the schema change is deployed to the
  databases)
* Read and write both schemas (for easy rollback while testing)
* Write only the new, read both (while a maintenance script runs to
  migrate existing old schema to the new)
* Access only the new schema (then we can drop the old)

This adds constants for use with feature flags controlling these stages.

Bug: T166732
Bug: T167246
Change-Id: I0fb637ca8c10ec91d6eda706d9d8a5ce9be41a06
includes/Defines.php