tabledump
tabledump copied to clipboard
Bug int unsigned decimal
On MySQL 5 the following column
xxx decimal(6,2) unsigned
is converted to:
$table->decimal('xxx', 6, 2) unsigned->unsigned()
Another example using TablePlus 4.0.5(168) and the latest available tabledump for bigint:
$table->bigint unsigned('id')->unsigned()->autoIncrement();
It should use unsignedBigInteger() in my case: https://laravel.com/docs/8.x/migrations#column-method-unsignedBigInteger
And https://laravel.com/docs/8.x/migrations#column-method-unsignedDecimal for a topic-starter.
It should be $table->id() if column name is id ( laravel 7x and late)