Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#767 update language name Flemish to Vlaams
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
24 changes: 24 additions & 0 deletions
24
atramhasis/alembic/versions/0978347c16f9_rename_flemish_vlaams.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"""rename flemish vlaams | ||
Revision ID: 0978347c16f9 | ||
Revises: 88214d86a9d1 | ||
Create Date: 2023-02-06 13:23:27.009952 | ||
""" | ||
|
||
from alembic import op | ||
import sqlalchemy as sa | ||
|
||
|
||
# revision identifiers, used by Alembic. | ||
revision = '0978347c16f9' | ||
down_revision = '88214d86a9d1' | ||
|
||
def upgrade(): | ||
connection = op.get_bind() | ||
connection.execute("UPDATE language SET name = 'Vlaams' WHERE id = 'vls'") | ||
|
||
def downgrade(): | ||
connection = op.get_bind() | ||
connection.execute("UPDATE language SET name = 'Flemish' WHERE id = 'vls'") |