This commit is contained in:
weeman 2021-06-12 12:07:51 +02:00
parent 341521555a
commit 3920183e0c
Signed by untrusted user: weeman
GPG Key ID: 34F0524D4DA694A1
2 changed files with 5 additions and 3 deletions

View File

@ -57,6 +57,7 @@ class Address(db.Model):
__tablename__ = "address"
id = Column(Integer, primary_key=True)
name = Column(String(25), default="")
street = Column(String(25), default="")
house_number = Column(String(10), default="")
additional = Column(String(25), default="")

View File

@ -1,8 +1,8 @@
"""Initial migration
Revision ID: 3dfe40b821a5
Revision ID: 47ba0a9cf065
Revises:
Create Date: 2021-06-12 11:58:43.577221
Create Date: 2021-06-12 12:06:29.946450
"""
from alembic import op
@ -10,7 +10,7 @@ import sqlalchemy as sa
# revision identifiers, used by Alembic.
revision = '3dfe40b821a5'
revision = '47ba0a9cf065'
down_revision = None
branch_labels = None
depends_on = None
@ -48,6 +48,7 @@ def upgrade():
)
op.create_table('address',
sa.Column('id', sa.Integer(), nullable=False),
sa.Column('name', sa.String(length=25), nullable=True),
sa.Column('street', sa.String(length=25), nullable=True),
sa.Column('house_number', sa.String(length=10), nullable=True),
sa.Column('additional', sa.String(length=25), nullable=True),