Issue 386 Foreign keys checks should be disabled when setting foreign keys
Issue 386 Fixed incorrect field definition