Update schema.sql base on migrations.
Remove unused migration records.