Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug int unsigned decimal #21

Open
niektenhoopen opened this issue Jun 19, 2020 · 2 comments · May be fixed by #32
Open

Bug int unsigned decimal #21

niektenhoopen opened this issue Jun 19, 2020 · 2 comments · May be fixed by #32

Comments

@niektenhoopen
Copy link

On MySQL 5 the following column
xxx decimal(6,2) unsigned

is converted to:
$table->decimal('xxx', 6, 2) unsigned->unsigned()

@niektenhoopen niektenhoopen changed the title Bug wit unsigned decimal Bug int unsigned decimal Aug 18, 2020
@slaFFik
Copy link

slaFFik commented Jun 4, 2021

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.

@niektenhoopen niektenhoopen linked a pull request Jun 15, 2021 that will close this issue
@xuandung38
Copy link

xuandung38 commented Sep 15, 2021

It should be $table->id() if column name is id ( laravel 7x and late)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants