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

Unsigned causes Postgres error when used with Integer or BigInteger #48

Closed
faytekin opened this issue Jun 24, 2021 · 1 comment
Closed

Comments

@faytekin
Copy link

faytekin commented Jun 24, 2021

Laravel Version: 8.48.1
PHP Version: 8.0.1

Migrations that mix integer() (or bigInteger()) with unsigned() no longer migrate, but throw an error with Postgres error.

Schema::create('broken_primary', function (Blueprint $table) {
    $table->integer('broken_id')->unsigned()->primary();
    $table->timestamps();
});
@studnitz
Copy link

This was fixed with laravel/framework#37826, so no need for this anymore.

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

No branches or pull requests

2 participants