I had the same error. I removed it by altering the order in which the tables are defined. Create first the independent table, and add the the dependent ones only when all of the fields are new or previously defined.