We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7037011 commit 1e7452cCopy full SHA for 1e7452c
migrations/versions/5d319985c5f2_create_user_table.py
@@ -23,10 +23,11 @@ def upgrade():
23
"user",
24
sa.Column("id", sa.Integer(), nullable=False),
25
sa.Column("username", sa.String(length=80), nullable=False),
26
- sa.Column("xp", sa.Float(), nullable=False),
27
- sa.Column("xp_required", sa.Float(), nullable=False),
28
- sa.Column("total_xp", sa.Float(), nullable=False),
29
- sa.Column("level", sa.Integer(), nullable=False),
+ sa.Column("xp", sa.Float(), nullable=False, server_default="0"),
+ sa.Column("xp_required", sa.Float(),
+ nullable=False, server_default="1"),
+ sa.Column("total_xp", sa.Float(), nullable=False, server_default="0"),
30
+ sa.Column("level", sa.Integer(), nullable=False, server_default="1"),
31
sa.PrimaryKeyConstraint("id"),
32
sa.UniqueConstraint("id"),
33
sa.UniqueConstraint("username"),
0 commit comments