Skip to content

Commit

Permalink
Adding unique index to user_acls
Browse files Browse the repository at this point in the history
- A user should only ever have one instance of an acl, this index enforces that
  at the table level.
  • Loading branch information
ryanrath committed Dec 13, 2019
1 parent 9604124 commit f140b95
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions configuration/etl/etl_tables.d/acls/user_acls.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@
"columns": [
"acl_id"
]
},
{
"name": "idx_user_id_acl_id",
"columns": [
"user_id",
"acl_id"
],
"type": "BTREE",
"is_unique": true
}
],
"foreign_key_constraints": [
Expand Down

0 comments on commit f140b95

Please sign in to comment.