diff --git a/README.md b/README.md index 85f76c23..ae73fbb3 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,8 @@ grocy is technically a pretty simple PHP application, so the basic notes to get - The webserver root should point to the `public` directory - Include `try_files $uri /index.php$is_args$query_string;` in your location block if you use nginx - Or disable URL rewriting (see the option `DISABLE_URL_REWRITING` in `data/config.php`) -- SQLite 3.8.3 or higher is required and everything is currently only tested against PHP 7.4 +- Based on user reports, the minmimum required/working runtime is PHP 7.2 with SQLite 3.9.0 + - However, I don't care about supporting old stuff, currently everything is only tested against (means 100 % works with) PHP 7.4 with SQLite 3.27.2 - → Default login is user `admin` with password `admin`, please change the password immediately (user menu at the top right corner) Alternatively clone this repository (the `release` branch always references the latest released version, or checkout the latest tagged revision) and install Composer and Yarn dependencies manually. diff --git a/changelog/61_UNRELEASED_xxxx-xx-xx.md b/changelog/61_UNRELEASED_xxxx-xx-xx.md index 17da2835..9e086625 100644 --- a/changelog/61_UNRELEASED_xxxx-xx-xx.md +++ b/changelog/61_UNRELEASED_xxxx-xx-xx.md @@ -1,3 +1,5 @@ - Improved the prerequisites checker (added missing required PHP extension `ctype`) (thanks @Forceu) - Fixed that browser camera barcode scanning did not work on the product edit page - Fixed that the new product option "Never show on stock overview" was unintentionally set by default for new products +- Fixed a problem (database migration fail) when using SQLite >= 3.8.3 < 3.9.0 + - _Just as a side note: PHP 7.2 with SQLite 3.8.3 was the currently in README mentioned minimum runtime requirement, any future release will only be tested against PHP 7.4 with SQLite 3.27.2 - supporting those ancient runtime stuff is too time consuming..._ diff --git a/composer.json b/composer.json index e907617a..22b5f6fa 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "require": { - "php": ">=7.2", + "php": ">=7.4", "slim/slim": "^4.0", "slim/psr7": "^1.0", "slim/http": "^1.0", diff --git a/helpers/PrerequisiteChecker.php b/helpers/PrerequisiteChecker.php index cbe0a3a3..7c0b628b 100644 --- a/helpers/PrerequisiteChecker.php +++ b/helpers/PrerequisiteChecker.php @@ -5,7 +5,7 @@ class ERequirementNotMet extends Exception } const REQUIRED_PHP_EXTENSIONS = ['fileinfo', 'pdo_sqlite', 'gd', 'ctype']; -const REQUIRED_SQLITE_VERSION = '3.8.3'; +const REQUIRED_SQLITE_VERSION = '3.9.0'; class PrerequisiteChecker {