BS-9678, migration of documents working on postgres