Skip to content

Commit

Permalink
feat: Add gitter & telegram urls in settings model (#7266)
Browse files Browse the repository at this point in the history
  • Loading branch information
progmatic-99 authored Sep 16, 2020
1 parent 2dd8b48 commit a8e46b9
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/api/schema/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ class Meta:
facebook_url = fields.Str(allow_none=True)
instagram_url = fields.Str(allow_none=True)
patreon_url = fields.Str(allow_none=True)
gitter_url = fields.Str(allow_none=True)
telegram_url = fields.Str(allow_none=True)
youtube_url = fields.Str(allow_none=True)

# Url of Frontend
Expand Down
2 changes: 2 additions & 0 deletions app/models/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,8 @@ class Setting(db.Model):
facebook_url = db.Column(db.String)
instagram_url = db.Column(db.String)
patreon_url = db.Column(db.String)
gitter_url = db.Column(db.String)
telegram_url = db.Column(db.String)
youtube_url = db.Column(db.String)

#
Expand Down
30 changes: 30 additions & 0 deletions migrations/versions/rev-2020-09-16-01:15:24-f736b1d888a7_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""empty message
Revision ID: f736b1d888a7
Revises: 19168ff996c6
Create Date: 2020-09-16 01:15:24.219374
"""

from alembic import op
import sqlalchemy as sa
import sqlalchemy_utils


# revision identifiers, used by Alembic.
revision = 'f736b1d888a7'
down_revision = '19168ff996c6'


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


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

0 comments on commit a8e46b9

Please sign in to comment.