server/tags: prefix post_count column with auto_

This commit is contained in:
rr- 2016-04-17 10:09:52 +02:00
parent 470ff70f91
commit 888e8e1aa7
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ class Tag(Base):
category = Column('category', String(32), nullable=False)
creation_time = Column('creation_time', DateTime, nullable=False)
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')
suggestions = relationship(

View file

@ -20,7 +20,7 @@ def upgrade():
sa.Column('category', sa.String(length=32), nullable=False),
sa.Column('creation_time', sa.DateTime(), nullable=False),
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'))
op.create_table(