From fe835cdde4ebc8ed819da38239c1cfd7b8e23dfc Mon Sep 17 00:00:00 2001 From: Jason Mayo Date: Mon, 24 Jun 2019 11:33:22 +0100 Subject: [PATCH] Issue where accessToken, refreshToken and expires column were missing on install --- CHANGELOG.md | 4 ++++ composer.json | 2 +- src/migrations/Install.php | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5733d33..c21bd7c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Strava Sync Changelog +## 1.0.8 - 2019-06-24 +### Fixed +- Issue where accessToken, refreshToken and expires column weren't being created on fresh installs. + ## 1.0.7 - 2019-05-31 ### Fixed - Error where no userId was defined when checking to see if user connected to Strava diff --git a/composer.json b/composer.json index 4d04c93..69ac9fd 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "bymayo/strava-sync", "description": "Connect to Strava with oAuth and sync activities etc to Craft CMS ", "type": "craft-plugin", - "version": "1.0.7", + "version": "1.0.8", "keywords": [ "craft", "cms", diff --git a/src/migrations/Install.php b/src/migrations/Install.php index 2577592..70c92e9 100755 --- a/src/migrations/Install.php +++ b/src/migrations/Install.php @@ -61,6 +61,9 @@ protected function createTables() 'id' => $this->primaryKey(), 'userId' => $this->integer()->notNull(), 'athleteId' => $this->string(255)->notNull(), + 'accessToken' => $this->string(255)->notNull(), + 'refreshToken' => $this->string(255)->notNull(), + 'expires' => $this->integer()->notNull(), 'dateCreated' => $this->dateTime()->notNull(), 'dateUpdated' => $this->dateTime()->notNull(), 'uid' => $this->uid()