if (dropTables) { dropTables(database); }  for (int idx = 0; idx < database.getTableCount(); idx++) { Table table = database.getTable(idx);  writeTableComment(table); createTable(database, table); }   createExternalForeignKeys(database);
createTables(database, null, true);
    public void createTables(Database database, boolean dropTables) throws IOException    {        if (dropTables)        {            dropTables(database);        }        for (int idx = 0; idx < database.getTableCount(); idx++)        {            Table table = database.getTable(idx);            writeTableComment(table);            createTable(database, table);        }        // we're writing the external foreignkeys last to ensure that all referenced tables are already defined        createExternalForeignKeys(database);    }