|
|
@@ -27,7 +27,7 @@ Connect to postgres by running `heroku psql -a electric-leaf-4093`
|
|
|
|
|
|
Run the following v2_user_universities export comand.
|
|
|
```
|
|
|
-\copy (select uu.user_id, uu.email, uu.cached_entitlement, ud.university_id from v2_user_universities uu LEFT JOIN university_domains ud ON uu.university_domain_id = ud.id) to 'cached-entitlements.csv' with csv;
|
|
|
+\copy (select uu.user_id, uu.email, uu.cached_entitlement, ud.university_id from v2_user_universities uu LEFT JOIN university_domains ud ON uu.university_domain_id = ud.id WHERE uu.removed_at IS NULL) to 'cached-entitlements.csv' with csv;
|
|
|
```
|
|
|
|
|
|
**Note: this file contains PII and caution must be exercised to insure that it
|
|
|
@@ -37,4 +37,4 @@ is never transferred or stored insecurely and that it is deleted ASAP**
|
|
|
|
|
|
```
|
|
|
node scripts/sync-user-entitlements/sync-user-entitlements --user-entitlements user-entitlements.json --cached-entitlements cached-entitlements.csv --commit
|
|
|
-```
|
|
|
+```
|