Skip to content

Commit 2febcdb

Browse files
committed
Fix saving
1 parent af0cfa3 commit 2febcdb

5 files changed

+37
-3
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Characteristic Changelog
22

3+
## 1.0.0-beta.11 - 6/5/20
4+
### Fixed
5+
- Bug where saving characteristics wasn't working anymore
6+
37
## 1.0.0-beta.10 - 5/1/20
48
### Fixed
59
- Bug where non-admin users could not sort characteristics

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "venveo/craft-characteristic",
33
"description": "Drill-drown on element characteristics",
44
"type": "craft-plugin",
5-
"version": "1.0.0-beta.10",
5+
"version": "1.0.0-beta.11",
66
"keywords": [
77
"craft",
88
"cms",

src/Characteristic.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ class Characteristic extends Plugin
6666
/**
6767
* @var string
6868
*/
69-
// 1.0.0.1 = 1.0.0-beta.6
70-
public $schemaVersion = '1.0.0.1';
69+
// 1.0.0.2 = 1.0.0-beta.11
70+
public $schemaVersion = '1.0.0.2';
7171

7272
// Public Methods
7373
// =========================================================================

src/migrations/Install.php

+1
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ protected function createTables()
7373
'deletedWithGroup' => $this->boolean()->null(),
7474
'dateCreated' => $this->dateTime()->notNull(),
7575
'dateUpdated' => $this->dateTime()->notNull(),
76+
'dateDeleted' => $this->dateTime()->null(),
7677
'uid' => $this->uid(),
7778
'PRIMARY KEY([[id]])',
7879
]);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<?php
2+
3+
namespace venveo\characteristic\migrations;
4+
5+
use Craft;
6+
use craft\db\Migration;
7+
8+
/**
9+
* m200605_122333_add_missing_deleted_column migration.
10+
*/
11+
class m200605_122333_add_missing_deleted_column extends Migration
12+
{
13+
/**
14+
* @inheritdoc
15+
*/
16+
public function safeUp()
17+
{
18+
$this->addColumn('{{%characteristic_characteristics}}','dateDeleted', $this->datetime()->after('dateUpdated')->defaultValue(null));
19+
}
20+
21+
/**
22+
* @inheritdoc
23+
*/
24+
public function safeDown()
25+
{
26+
echo "m200605_122333_add_missing_deleted_column cannot be reverted.\n";
27+
return false;
28+
}
29+
}

0 commit comments

Comments
 (0)