src/Migrator.php
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);
        }
    }
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);
        }
    }
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 ) ; } }
Creates the migration log table.
Creates the migration log table .