modified table definition migration to use references.