server/tags: prefix post_count column with auto_
This commit is contained in:
parent
470ff70f91
commit
888e8e1aa7
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ class Tag(Base):
|
||||||
category = Column('category', String(32), nullable=False)
|
category = Column('category', String(32), nullable=False)
|
||||||
creation_time = Column('creation_time', DateTime, nullable=False)
|
creation_time = Column('creation_time', DateTime, nullable=False)
|
||||||
last_edit_time = Column('last_edit_time', DateTime)
|
last_edit_time = Column('last_edit_time', DateTime)
|
||||||
post_count = Column('post_count', Integer, nullable=False, default=0)
|
post_count = Column('auto_post_count', Integer, nullable=False, default=0)
|
||||||
names = relationship('TagName', cascade='all, delete-orphan')
|
names = relationship('TagName', cascade='all, delete-orphan')
|
||||||
|
|
||||||
suggestions = relationship(
|
suggestions = relationship(
|
||||||
|
|
|
@ -20,7 +20,7 @@ def upgrade():
|
||||||
sa.Column('category', sa.String(length=32), nullable=False),
|
sa.Column('category', sa.String(length=32), nullable=False),
|
||||||
sa.Column('creation_time', sa.DateTime(), nullable=False),
|
sa.Column('creation_time', sa.DateTime(), nullable=False),
|
||||||
sa.Column('last_edit_time', sa.DateTime(), nullable=True),
|
sa.Column('last_edit_time', sa.DateTime(), nullable=True),
|
||||||
sa.Column('post_count', sa.Integer(), nullable=False),
|
sa.Column('auto_post_count', sa.Integer(), nullable=False),
|
||||||
sa.PrimaryKeyConstraint('id'))
|
sa.PrimaryKeyConstraint('id'))
|
||||||
|
|
||||||
op.create_table(
|
op.create_table(
|
||||||
|
|
Loading…
Reference in a new issue