lundi 2 mai 2016

Laravel Migration Error Syntax

I am trying to migrate(update) this, but I keep getting this error message:

[Symfony\Component\Debug\Exception\FatalErrorException] syntax error, unexpected '>', expecting '<'

    Schema::table('products', function (Blueprint $table)) {
        $table->string('XXXX', 50)->change();
        $table->string('XXXX', 50)->change();
        $table->string('XXXX', 10)->change();
        $table->String('XXXX', 100)->change();;
        $table->String('XXXX', 100)->change();
        $table->String('XXXX', 100)->change();
        $table->String('XXXX', 50)->change();
        $table->tinyInteger('XXXX')->unsigned()->change();
        $table->tinyInteger('XXXX')->unsigned()->change();
        $table->String('XXXX', 100)->change();
        $table->tinyInteger('XXXX')->unsigned()->change();
        $table->String('XXXX', 50)->change();
        $table->String('XXXX', 50)->change();
        $table->String('XXXX', 50)->change();
        $table->String('XXXX', 50)->change();
        $table->String('XXXX', 50)->change();
        $table->boolean('XXXX')->change();
        $table->boolean('XXXX')->change();
        $table->boolean('XXXX')->change();
        $table->boolean('XXXX')->change();
        $table->boolean('XXXX')->change();
        $table->boolean('XXXX')->change();
        $table->boolean('XXXX')->change();
        $table->boolean('XXXX')->change();
        $table->boolean('XXXX')->change();
        $table->text('XXXX')->change();
        $table->String('XXXX', 100)->change();
        $table->String('XXXX', 100)->change();
        $table->String('XXXX', 100)->change();
        $table->String('XXXX', 100)->change();
        $table->tinyInteger('XXXX')->unsigned()->change();
        $table->tinyInteger('XXXX')->unsigned()->change();
        $table->tinyInteger('XXXX')->unsigned()->change();
        $table->tinyInteger('XXXX')->unsigned()->change();
        $table->String('XXXX', 50)->change();
        $table->String('XXXX', 50)->change();
        $table->String('XXXX', 50)->change();
        $table->String('XXXX', 50)->change();
        $table->text('XXXX');
        $table->timestamps();
    });
}



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/21qkL6g
via IFTTT

Aucun commentaire:

Enregistrer un commentaire