Skip to content

Commit

Permalink
renamed table group --> groups. there was a conflict in sql affecting…
Browse files Browse the repository at this point in the history
… queries
  • Loading branch information
mvliet committed Jan 25, 2011
1 parent fcf5837 commit 267f140
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions server/repoman/repoman/model/associations.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
# many-to-many relationship
user_group_association = Table('user_group_association', Base.metadata,
Column('user_id', Integer, ForeignKey('user.id')),
Column('group_id', Integer, ForeignKey('group.id')),
Column('group_id', Integer, ForeignKey('groups.id')),
)

# Group permissions
# Many-to-many relationship
group_permission_association = Table('group_permission_association', Base.metadata,
Column('group_id', Integer, ForeignKey('group.id')),
Column('group_id', Integer, ForeignKey('groups.id')),
Column('permission_id', Integer, ForeignKey('permission.id')),
)

Expand All @@ -29,6 +29,6 @@
# many-to-many relationship
imageshare_group_association = Table('imageshare_group_association', Base.metadata,
Column('imageshare_id', Integer, ForeignKey('image_share.id')),
Column('group_id', Integer, ForeignKey('group.id')),
Column('group_id', Integer, ForeignKey('groups.id')),
)

2 changes: 1 addition & 1 deletion server/repoman/repoman/model/group.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from repoman.model.meta import Base

class Group(Base):
__tablename__ = "group"
__tablename__ = "groups"

id = Column(Integer, primary_key=True)
created = Column(DateTime())
Expand Down

0 comments on commit 267f140

Please sign in to comment.