fixing thinko
authorRogan Hamby <rhamby@equinoxinitiative.org>
Tue, 21 Jul 2020 13:28:53 +0000 (09:28 -0400)
committerRogan Hamby <rhamby@equinoxinitiative.org>
Tue, 21 Jul 2020 13:28:53 +0000 (09:28 -0400)
remove_ou_data/00_check_admin_user.sql

index 6d6eb9d..3702ba7 100644 (file)
 \timing
 
 -- these scripts assume that the admin user's home_ou is 1, if not there can be problems 
+-- replace 'equinox' with the appropriate admin name 
 
 DO $$
 DECLARE 
     x   INTEGER;
 BEGIN
-    SELECT home_ou FROM actor.usr INTO x;
+    SELECT home_ou FROM actor.usr WHERE usrname = 'equinox' INTO x;
     IF x != 1 THEN RAISE EXCEPTION 'Admin user is not home org of 1'; END IF;
 END $$;