From 4cefa9ed24cd34a9504397a2deb8cfa9bcb38d76 Mon Sep 17 00:00:00 2001 From: Sergio Brighenti Date: Sat, 11 Apr 2020 17:59:14 +0200 Subject: [PATCH] Fixed installation error (closes #188) --- CHANGELOG.md | 3 +++ app/Database/Migrator.php | 2 -- composer.json | 2 +- docs/changelog.md | 2 ++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index dcf37ba..165a7b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,6 @@ +## v.3.1.1 ++ Fixed error during a fresh installation with sqlite + ## v.3.1 + Added tagging system (add, delete, search of tagged files). + Added basic media auto-tagging on upload. diff --git a/app/Database/Migrator.php b/app/Database/Migrator.php index 5db9bda..30c0dd6 100644 --- a/app/Database/Migrator.php +++ b/app/Database/Migrator.php @@ -31,8 +31,6 @@ class Migrator public function migrate() { - $this->db->query('SELECT 1 FROM `migrations` LIMIT 1'); - $this->db->getPdo()->exec(file_get_contents($this->schemaPath.DIRECTORY_SEPARATOR.'migrations.sql')); $files = glob($this->schemaPath.'/'.$this->db->getCurrentDriver().'/*.sql'); diff --git a/composer.json b/composer.json index 2348315..5ff92ba 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "sergix44/xbackbone", - "version": "3.1", + "version": "3.1.1", "description": "A lightweight ShareX PHP backend", "type": "project", "require": { diff --git a/docs/changelog.md b/docs/changelog.md index 2692da3..2cb9a1d 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -3,6 +3,8 @@ layout: default title: Changelog nav_order: 8 --- +## v.3.1.1 ++ Fixed error during a fresh installation with sqlite ## v.3.1 + Added tagging system (add, delete, search of tagged files).