From 8b14fe4e07b9eb5d10cb18a617e58584703bb7cb Mon Sep 17 00:00:00 2001 From: Kevin Beckers Date: Fri, 11 Sep 2020 08:34:54 +0200 Subject: [PATCH] v1.3.2.2 --- composer.json | 2 +- src/migrations/Install.php | 4 ++-- ...200821_142415_edit_cookieboss_consentgroup_description.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 634ccd2..a710b69 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "dutchheight/craft-cookie-boss", "description": "Allow your visitors to set their cookie preference.", "type": "craft-plugin", - "version": "1.3.2", + "version": "1.3.2.2", "keywords": [ "craft", "cms", diff --git a/src/migrations/Install.php b/src/migrations/Install.php index 5e8cea5..8ca4e4e 100644 --- a/src/migrations/Install.php +++ b/src/migrations/Install.php @@ -111,7 +111,7 @@ protected function createTables() 'siteId' => $this->integer(), 'handle' => $this->string(255)->notNull()->defaultValue(''), 'name' => $this->string(255)->notNull()->defaultValue(''), - 'desc' => $this->text()->notNull()->defaultValue(''), + 'desc' => $this->text()->notNull(), 'enabled' => $this->boolean()->notNull()->defaultValue(1), 'required' => $this->boolean()->notNull()->defaultValue(0), 'defaultValue' => $this->boolean()->notNull()->defaultValue(0), @@ -130,7 +130,7 @@ protected function createTables() 'consentGroupId' => $this->integer(), 'name' => $this->string(255)->notNull()->defaultValue(''), 'key' => $this->string(255)->notNull()->defaultValue(''), - 'desc' => $this->string(255)->notNull()->defaultValue(''), + 'desc' => $this->text()->notNull(), 'purpose' => $this->string(255)->notNull()->defaultValue(''), 'enabled' => $this->boolean()->notNull()->defaultValue(1) ] diff --git a/src/migrations/m200821_142415_edit_cookieboss_consentgroup_description.php b/src/migrations/m200821_142415_edit_cookieboss_consentgroup_description.php index e3be081..50b5cb4 100644 --- a/src/migrations/m200821_142415_edit_cookieboss_consentgroup_description.php +++ b/src/migrations/m200821_142415_edit_cookieboss_consentgroup_description.php @@ -15,7 +15,7 @@ class m200821_142415_edit_cookieboss_consentgroup_description extends Migration */ public function safeUp() { - $this->alterColumn('{{%cookieboss_consentgroup}}', 'desc', $this->text()->notNull()->defaultValue('')); + $this->alterColumn('{{%cookieboss_consentgroup}}', 'desc', $this->text()->notNull()); } /**