aboutsummaryrefslogtreecommitdiffstats
path: root/core/namespace/Migrator.php
diff options
context:
space:
mode:
authorThomas Lange <code@nerdmind.de>2021-07-02 22:32:09 +0200
committerThomas Lange <code@nerdmind.de>2021-07-02 22:32:09 +0200
commit1a483f43f06f287ca97ff9543c396f74f5f72077 (patch)
treed7d215eda4a09bc1c175621eb33bade2d46378a5 /core/namespace/Migrator.php
parentf025fd3e7be449c06c2e99f77f528f402cd93f72 (diff)
downloadblog-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/namespace/Migrator.php')
-rw-r--r--core/namespace/Migrator.php2
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"';