Fix for table create with foreign keys

Compiling "table create" with foreign keys fixed. Unit test is in -> test/mysql/tests/TableBuilderTest::testCreateTableWithForeignKeys