Fix old schema migration so that it is idempotent

Change-Id: I28fbed7108d19594084409a02ec9b8a4f8f3d404
(FR #1771) Coinbase report importer

Change-Id: Iaa72fce4d0319f12533ca1bcc73a37b615e324c0