Skip to content

Commit

Permalink
add-weblate-in-footer
Browse files Browse the repository at this point in the history
  • Loading branch information
sachinchauhan2889 committed Nov 16, 2020
1 parent b56f9c9 commit 3844be1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/api/schema/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ class Meta:
gitter_url = fields.Str(allow_none=True)
telegram_url = fields.Str(allow_none=True)
youtube_url = fields.Str(allow_none=True)
weblate_url = fields.Str(allow_none=True)

# Url of Frontend
frontend_url = fields.Url(allow_none=True)
Expand Down
1 change: 1 addition & 0 deletions app/models/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ class Setting(db.Model):
gitter_url = db.Column(db.String)
telegram_url = db.Column(db.String)
youtube_url = db.Column(db.String)
weblate_url = db.Column(db.String)

#
# Event Invoices settings
Expand Down
28 changes: 28 additions & 0 deletions migrations/versions/rev-2020-11-16-15:19:38-74a148c0100d_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
"""empty message
Revision ID: 74a148c0100d
Revises: aa9daed401f7
Create Date: 2020-11-16 15:19:38.949153
"""

from alembic import op
import sqlalchemy as sa
import sqlalchemy_utils


# revision identifiers, used by Alembic.
revision = '74a148c0100d'
down_revision = 'aa9daed401f7'


def upgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.add_column('settings', sa.Column('weblate_url', sa.String(), nullable=True))
# ### end Alembic commands ###


def downgrade():
# ### commands auto generated by Alembic - please adjust! ###
op.drop_column('settings', 'weblate_url')
# ### end Alembic commands ###

0 comments on commit 3844be1

Please sign in to comment.