Skip to content

Commit

Permalink
Merge pull request #18 from TimNekk/develop
Browse files Browse the repository at this point in the history
Fixed docker-compose and user model
  • Loading branch information
TimNekk authored Mar 30, 2023
2 parents 6ef44ce + 26a95d2 commit ce33095
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion alembic/versions/73ffa12c03c8_initial.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def upgrade() -> None:
sa.Column('username', sa.String(length=32), nullable=True),
sa.Column('first_name', sa.String(length=255), nullable=True),
sa.Column('last_name', sa.String(length=255), nullable=True),
sa.Column('is_banned', sa.Boolean(), nullable=False),
sa.Column('is_banned', sa.Boolean(), server_default='False', nullable=False),
sa.Column('deep_link', sa.String(length=225), nullable=True),
sa.Column('created_at', sa.DateTime(timezone=True), server_default=sa.text('now()'), nullable=True),
sa.Column('updated_at', sa.DateTime(timezone=True), server_default=sa.text('now()'), nullable=True),
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '3.3'
version: '2.4'

services:
bot:
Expand Down
2 changes: 1 addition & 1 deletion tgbot/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ class User(TimedBaseModel):
username = db.Column(db.String(32), nullable=True)
first_name = db.Column(db.String(255), nullable=True)
last_name = db.Column(db.String(255), nullable=True)
is_banned = db.Column(db.Boolean, nullable=False, default=False)
is_banned = db.Column(db.Boolean, server_default="False", nullable=False)
deep_link = db.Column(db.String(225), nullable=True)

0 comments on commit ce33095

Please sign in to comment.