protected function createTable($tableName, $table) {
		$res = "\$this->schema->create('$tableName', function(\$table) {";

		foreach($table->getColumns() as $colName=>$col)
			$res .= $this->createColumn($colName, $col);

		foreach($table->getIndexes() as $index)
			$res .= $this->createIndex($index);

		foreach($table->getForeignKeys() as $key)
			$res .= $this->createForeignKey($key);

		$res .= "\n});\n\n";

		return $res;
	}