Skip to content

Commit

Permalink
Merge branch 'hotfix/0.15.1'
Browse files Browse the repository at this point in the history
  • Loading branch information
Kruptein committed May 15, 2019
2 parents 64bae5c + 07183ac commit c3f5cec
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ All notable changes to this project will be documented in this file.

## Unreleased

## [0.15.1] - 2019-05-15

### Fixed

- Upgrade from save format 12 to 13 failing in some cases.

## [0.15.0] - 2019-04-14

### Added
Expand Down
2 changes: 1 addition & 1 deletion client/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "planarally-client",
"version": "0.15.0",
"version": "0.15.1",
"description": "A companion tool for when you travel into the planes.",
"scripts": {
"serve": "vue-cli-service serve",
Expand Down
8 changes: 6 additions & 2 deletions server/save.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import shutil
import sys

from peewee import FloatField
from peewee import FloatField, OperationalError
from playhouse.migrate import *

from config import SAVE_FILE
Expand Down Expand Up @@ -126,7 +126,11 @@ def upgrade(version):
db.foreign_keys = False
migrator = SqliteMigrator(db)
with db.atomic():
migrate(migrator.add_column("label", "category", Label.category))
try:
migrate(migrator.add_column("label", "category", Label.category))
except OperationalError as e:
if e.args[0] != "duplicate column name: category":
raise e
db.create_tables([LabelSelection])
with db.atomic():
for label in Label:
Expand Down

0 comments on commit c3f5cec

Please sign in to comment.