about summary refs log tree commit diff
path: root/users/grfn/bbbg/resources/migrations/20211224161028-add-attendee-unique-meetup-id.up.sql
diff options
context:
space:
mode:
authorGriffin Smith <grfn@gws.fyi>2021-12-24T17·10-0500
committerclbot <clbot@tvl.fyi>2021-12-24T17·43+0000
commit371a444eb776873848868819e9e7a08c7d810947 (patch)
treee8d29e465a2efd8290fc80390b385a7a75cfb419 /users/grfn/bbbg/resources/migrations/20211224161028-add-attendee-unique-meetup-id.up.sql
parent92d9580df3f12db42886efbc3ca979ca6495c281 (diff)
feat(grfn/bbbg): Allow importing event attendees r/3354
Add support for importing the tsv that meetup exports into a list of
upserted attendees, and event-attendee joins.

Change-Id: I5f4ddc9fc63bcc6b0334bc3e1d3cbc4d5b99c21b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4570
Tested-by: BuildkiteCI
Reviewed-by: grfn <grfn@gws.fyi>
Autosubmit: grfn <grfn@gws.fyi>
Diffstat (limited to 'users/grfn/bbbg/resources/migrations/20211224161028-add-attendee-unique-meetup-id.up.sql')
-rw-r--r--users/grfn/bbbg/resources/migrations/20211224161028-add-attendee-unique-meetup-id.up.sql2
1 files changed, 2 insertions, 0 deletions
diff --git a/users/grfn/bbbg/resources/migrations/20211224161028-add-attendee-unique-meetup-id.up.sql b/users/grfn/bbbg/resources/migrations/20211224161028-add-attendee-unique-meetup-id.up.sql
new file mode 100644
index 000000000000..5895cad56bdf
--- /dev/null
+++ b/users/grfn/bbbg/resources/migrations/20211224161028-add-attendee-unique-meetup-id.up.sql
@@ -0,0 +1,2 @@
+create unique index "attendee_uniq_meetup_user_id" on attendee (meetup_user_id);
+-- ;;