making the user delete information a bit more robust
[migration-tools.git] / remove_ou_data / 16_delete_usrs_stage_1.sql
index 32eaf30..78c3956 100644 (file)
 \set ECHO all
 \timing
 
+-- creates an output file for serially deleting users, 
+-- makes it easier than finding each problem stopping a batch 
+-- creates a stage 2 inbetween 1 and 3
+
 \t
 \psql format unaligned
 \o 16_delete_usrs_stage_2.sql
@@ -32,4 +36,7 @@ FROM actor.usr WHERE home_ou IN (
 SELECT 'ALTER TABLE actor.usr ENABLE RULE protect_user_delete;';
 
 \o
+\pset format aligned
+\t
+