Skip to content

Commit

Permalink
fix is_compatible_schema_version.hack
Browse files Browse the repository at this point in the history
  • Loading branch information
jjergus committed Jun 8, 2021
1 parent 0c54984 commit 14539ef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/__Private/is_compatible_schema_version.hack
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ use const Facebook\HHAST\SCHEMA_VERSION;
*/
function is_compatible_schema_version(string $other_version): bool {
invariant(
SCHEMA_VERSION === '2021-03-24-0001',
SCHEMA_VERSION === '2021-06-04-0001',
'%s needs updating',
__FILE__,
);
Expand All @@ -31,8 +31,10 @@ function is_compatible_schema_version(string $other_version): bool {

// Return true if $other_version is a subset of SCHEMA_VERSION
switch ($other_version) {
/* Example:
case '2021-05-20-0001': // removes DefineExpression (unused)
return true;
*/
default:
return false;
}
Expand Down

0 comments on commit 14539ef

Please sign in to comment.