Drop objects in the correct order..
authorMagnus Hagander <magnus@hagander.net>
Wed, 7 Oct 2015 13:53:36 +0000 (15:53 +0200)
committerMagnus Hagander <magnus@hagander.net>
Wed, 7 Oct 2015 13:53:36 +0000 (15:53 +0200)
tools/scrub/scrub.sql

index 21642123eb5ee78bc84f51b6d5c6bfe274de6d42..d92ac33285b1fa587b26749703a3b54cc2c1667e 100644 (file)
@@ -55,7 +55,7 @@ UPDATE profserv_professionalservice SET contact='scrubbedcontact';
 TRUNCATE TABLE survey_surveylock;
 
 -- We still have a lot of migration data, so lose it.
-DROP TABLE IF EXISTS users_old;
 DROP TABLE IF EXISTS users_keys;
+DROP TABLE IF EXISTS users_old;
 
 \echo NOTE! Transaction has not been committed. Verify manually and then commit!