From 888e8e1aa717f6faa7f4aed84a484874b344cf28 Mon Sep 17 00:00:00 2001 From: rr- Date: Sun, 17 Apr 2016 10:09:52 +0200 Subject: [PATCH] server/tags: prefix post_count column with auto_ --- server/szurubooru/db/tag.py | 2 +- .../migrations/versions/00cb3a2734db_create_tags_tables.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/szurubooru/db/tag.py b/server/szurubooru/db/tag.py index a525bf05..f11cfed7 100644 --- a/server/szurubooru/db/tag.py +++ b/server/szurubooru/db/tag.py @@ -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( diff --git a/server/szurubooru/migrations/versions/00cb3a2734db_create_tags_tables.py b/server/szurubooru/migrations/versions/00cb3a2734db_create_tags_tables.py index 02bb3c25..fe85ade7 100644 --- a/server/szurubooru/migrations/versions/00cb3a2734db_create_tags_tables.py +++ b/server/szurubooru/migrations/versions/00cb3a2734db_create_tags_tables.py @@ -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(