Mercurial > kallithea
diff kallithea/model/db.py @ 8971:ff22ffbac5a3 stable
repo group: clarify comments
author | Mads Kiilerich <mads@kiilerich.com> |
---|---|
date | Wed, 21 Dec 2022 23:15:38 +0100 |
parents | cb733c39f658 |
children | 6cb54b9ef4de |
line wrap: on
line diff
--- a/kallithea/model/db.py Tue Dec 13 16:46:09 2022 +0100 +++ b/kallithea/model/db.py Wed Dec 21 23:15:38 2022 +0100 @@ -913,7 +913,7 @@ STATE_ERROR = 'repo_state_error' repo_id = Column(Integer(), primary_key=True) - repo_name = Column(Unicode(255), nullable=False, unique=True) + repo_name = Column(Unicode(255), nullable=False, unique=True) # full path, must be updated (based on get_new_name) when name or path changes repo_state = Column(String(255), nullable=False) clone_uri = Column(String(255), nullable=True) # FIXME: not nullable? @@ -1337,7 +1337,7 @@ SEP = ' » ' group_id = Column(Integer(), primary_key=True) - group_name = Column(Unicode(255), nullable=False, unique=True) # full path + group_name = Column(Unicode(255), nullable=False, unique=True) # full path, must be updated (based on get_new_name) when name or path changes parent_group_id = Column('group_parent_id', Integer(), ForeignKey('groups.group_id'), nullable=True) group_description = Column(Unicode(10000), nullable=False) owner_id = Column('user_id', Integer(), ForeignKey('users.user_id'), nullable=False)