Skip to content

Commit

Permalink
SXTPDFINXZCB-312
Browse files Browse the repository at this point in the history
Making user ID foreign key constraint also deferrable
  • Loading branch information
Gregory von Nessi committed May 3, 2017
1 parent d2e5a0d commit 25b1628
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ckanext/showcase/model/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ def define_showcase_admin_table():
Column('user_id', types.UnicodeText,
ForeignKey('user.id',
ondelete='CASCADE',
onupdate='CASCADE'),
onupdate='CASCADE',
deferrable=True),
primary_key=True, nullable=False))

mapper(ShowcaseAdmin, showcase_admin_table)

0 comments on commit 25b1628

Please sign in to comment.