From 1a483f43f06f287ca97ff9543c396f74f5f72077 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Fri, 2 Jul 2021 22:32:09 +0200 Subject: Clarify comment in determineFallbackSchemaVersion If the migration table does not yet exist, the user sits *either* at 0, 1, 2, 3 or 4; not *between* 0 and 4 (which would be 1, 2 or 3). --- core/namespace/Migrator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core') diff --git a/core/namespace/Migrator.php b/core/namespace/Migrator.php index 8f31f7c..7b8d263 100644 --- a/core/namespace/Migrator.php +++ b/core/namespace/Migrator.php @@ -161,7 +161,7 @@ class Migrator { #=============================================================================== private function determineFallbackSchemaVersion(): int { # If the migration table does not yet exist, the user may have upgraded from - # an older release of the application and sits somewhere between 0 and 4. So + # an older release of the application and sits either at 0, 1, 2, 3 or 4. So # we run some checks against the tables to determine the schema version. $test[4] = 'SHOW COLUMNS FROM post WHERE Field = "argv" AND Type = "varchar(250)"'; $test[3] = 'SHOW INDEX FROM post WHERE Key_name = "search"'; -- cgit v1.2.3