diff --git a/migration/18.04/1804.sql b/migration/18.04/1804.sql
index c3b110115522060e03831d5d1165523a9262767b..f423b8499d4c05a5cee06c775c45afbdd37cdf1e 100644
--- a/migration/18.04/1804.sql
+++ b/migration/18.04/1804.sql
@@ -676,6 +676,9 @@ DO $$ BEGIN
     select users.id, usergroups.id, user_baskets_secondary.basket_id, TRUE from users, usergroups, user_baskets_secondary
     where users.user_id = user_baskets_secondary.user_id and usergroups.group_id = user_baskets_secondary.group_id
     order by users.id;
+    INSERT INTO users_baskets_preferences (user_serial_id, group_serial_id, basket_id, display) 
+    SELECT u.id, g.id, 'IndexingBasket', TRUE FROM users as u INNER JOIN usergroup_content AS c ON u.user_id=c.user_id INNER JOIN usergroups AS g ON g.group_id=c.group_id 
+    WHERE (u.user_id,g.group_id) IN (SELECT user_id, group_id FROM usergroup_content WHERE primary_group = 'N');
     DROP TABLE IF EXISTS user_baskets_secondary;
   END IF;
 END$$;