migrations-generator icon indicating copy to clipboard operation
migrations-generator copied to clipboard

Postgres UUID columns are generated as $table->guid

Open mazhuravlev opened this issue 9 years ago • 3 comments

Postgres UUID columns are generated as $table->guid, resulting in

PHP Fatal error: Call to undefined method Illuminate\Database\Schema\Blueprint::guid()

The right method name is Blueprint::uuid(), so it's temporarily fixed by a replace. Used versions: Laravel 5.2.10, PostgreSQL 9.3

mazhuravlev avatar Jan 14 '16 11:01 mazhuravlev

This should be easy to fix. Will take a look at it once I have time

Xethron avatar Apr 08 '16 13:04 Xethron

Is this still an issue in the latest version?

Xethron avatar Nov 20 '16 14:11 Xethron

Yes, it's still an issue on Laravel 5.5 with version 2.0.2

johlton avatar Oct 20 '17 09:10 johlton