Skip to content

Commit

Permalink
fix schema version
Browse files Browse the repository at this point in the history
  • Loading branch information
kringkaste committed Sep 20, 2021
1 parent 37987a8 commit 6a1bcdb
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# Release Notes for Glossary for Craft CMS

## Unreleased
## 1.0.2 - 2021-09-20

### Fixed

- Deleting disabled terms is fixed.
- Fixed wrong schema version.

## 1.0.1 - 2021-09-16

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "codemonauts/craft-glossary",
"description": "Add glossaries with tooltips to Craft CMS.",
"version": "1.0.1",
"version": "1.0.2",
"type": "craft-plugin",
"keywords": [
"craft",
Expand Down
2 changes: 1 addition & 1 deletion src/Glossary.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Glossary extends Plugin
/**
* @inheritDoc
*/
public $schemaVersion = '1.0.1';
public $schemaVersion = '1.0.2';

/**
* @inheritDoc
Expand Down
28 changes: 28 additions & 0 deletions src/migrations/m210920_000000_fix_schema_version.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

namespace codemonauts\glossary\migrations;

use craft\db\Migration;

/**
* m210920_000000_fix_schema_version migration.
*/
class m210920_000000_fix_schema_version extends Migration
{
/**
* @inheritdoc
*/
public function safeUp()
{
return true;
}

/**
* @inheritdoc
*/
public function safeDown()
{
echo "m210920_000000_fix_schema_version cannot be reverted.\n";
return false;
}
}

0 comments on commit 6a1bcdb

Please sign in to comment.