Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/api/schema/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Meta:
twitter_url = fields.Str(allow_none=True)
support_url = fields.Str(allow_none=True)
facebook_url = fields.Str(allow_none=True)
instagram_url = fields.Str(allow_none=True)
youtube_url = fields.Str(allow_none=True)

# Url of Frontend
Expand Down
1 change: 1 addition & 0 deletions app/models/setting.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ class Setting(db.Model):
twitter_url = db.Column(db.String)
support_url = db.Column(db.String)
facebook_url = db.Column(db.String)
instagram_url = db.Column(db.String)
youtube_url = db.Column(db.String)

#
Expand Down
28 changes: 28 additions & 0 deletions migrations/versions/rev-2020-07-26-08:15:09-507022789bcb_.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
"""empty message

Revision ID: 507022789bcb
Revises: 286869159bb5
Create Date: 2020-07-26 08:15:09.725288

"""

from alembic import op
import sqlalchemy as sa
import sqlalchemy_utils


# revision identifiers, used by Alembic.
revision = '507022789bcb'
down_revision = '286869159bb5'


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


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