add address.name kompetenzinventar/ki-doku#8
This commit is contained in:
parent
341521555a
commit
3920183e0c
@ -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="")
|
||||
|
@ -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),
|
Loading…
Reference in New Issue
Block a user