protected function createMigrationsTable()
    {
        $schema = new Schema;
        $table = $schema->createTable("schema_migrations");
        $table->addColumn("version", "string");
        $table->addColumn("date", "date");

        $queries = $schema->toSql($this->connection->getDatabasePlatform());

        foreach ($queries as $query) {
            $this->connection->query($query);
        }
    }