Skip to content

Commit 9854bb0

Browse files
jenkins-botGerrit Code Review
jenkins-bot
authored and
Gerrit Code Review
committed
Merge "Defines: add warning comment"
2 parents 34edf19 + fdb3794 commit 9854bb0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

includes/Defines.php

+4
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,10 @@
306306
* SCHEMA_COMPAT_XXX bitfield semantics. High bits are used to ensure that the numeric
307307
* ordering follows the order in which the migration stages should be used.
308308
*
309+
* Do not use these constants to query the feature flag. If you wish to check if your
310+
* code should perform a particular kind of read or write operation, use the appropriate
311+
* SCHEMA_COMPAT_XXX flag. It is generally an error to use MIGRATION_XXX constants in a bitwise operation.
312+
*
309313
* - MIGRATION_OLD: Only read and write the old schema. The new schema need not
310314
* even exist. This is used from when the patch is merged until the schema
311315
* change is actually applied to the database.

0 commit comments

Comments
 (0)