diff options
author | Thomas Lange <code@nerdmind.de> | 2021-07-02 22:32:09 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-07-02 22:32:09 +0200 |
commit | 1a483f43f06f287ca97ff9543c396f74f5f72077 (patch) | |
tree | d7d215eda4a09bc1c175621eb33bade2d46378a5 /core | |
parent | f025fd3e7be449c06c2e99f77f528f402cd93f72 (diff) | |
download | blog-1a483f43f06f287ca97ff9543c396f74f5f72077.tar.gz blog-1a483f43f06f287ca97ff9543c396f74f5f72077.tar.xz blog-1a483f43f06f287ca97ff9543c396f74f5f72077.zip |
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).
Diffstat (limited to 'core')
-rw-r--r-- | core/namespace/Migrator.php | 2 |
1 files changed, 1 insertions, 1 deletions
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"'; |