Skip to content

Commit

Permalink
add missing CONSERVATION Enum to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
tillsteinbach committed Feb 4, 2022
1 parent 7ad4348 commit 80a2f14
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
## [Unreleased] (Available through Edge Tag)
- No unreleased changes so far

## [0.14.1] - 2022-02-04
### Fixed
- Add missing CONSERVATION Enum to database schema

## [0.14.0] - 2022-01-28
### Fixed
- Login to WeConnect works again after changes on login page
Expand Down
Binary file modified vwsfriend/vwsfriend/model/vwsfriend-schema/reference.db
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
"""Add missing ENUM
Revision ID: eb4c7c65c4fb
Revises: 1b71c67dd2eb
Create Date: 2022-02-04 20:04:08.442697
"""
from alembic import op
import sqlalchemy as sa


# revision identifiers, used by Alembic.
revision = 'eb4c7c65c4fb'
down_revision = '1b71c67dd2eb'
branch_labels = None
depends_on = None


def upgrade():
if op.get_context().dialect.name == 'postgresql':
with op.get_context().autocommit_block():
op.execute("ALTER TYPE chargingstate ADD VALUE 'CONSERVATION' IF NOT EXISTS")


def downgrade():
pass

0 comments on commit 80a2f14

Please sign in to comment.