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

There are two quality_non_conformities_id columns in 2022_07_23_150511_create_files_table.php #359

Closed
sunxiaoguang opened this issue Apr 21, 2024 · 1 comment · Fixed by #358
Assignees
Labels
bug Something isn't working invalid This doesn't seem right

Comments

@sunxiaoguang
Copy link
Contributor

Describe the bug
Running migrate failed with duplicate columns in 2022_07_23_150511_create_files_table

To Reproduce
Steps to reproduce the behavior:
php artisan migrate

Expected behavior
Migrate succeed

Screenshots
image

Additional context
Add any other context about the problem here.

File database/migrations/2022_07_23_150511_create_files_table.php has definitions with the same column name

    public function up()
    {   
        Schema::create('files', function (Blueprint $table) {
            $table->id();
            $table->integer('user_id');
            $table->string('name');
            $table->string('original_file_name');
            $table->string('type');
            $table->string('size');
            $table->integer('companies_id')->nullable();
            $table->integer('opportunities_id')->nullable();
            $table->integer('quotes_id')->nullable();
            $table->integer('orders_id')->nullable();
            $table->integer('deliverys_id')->nullable();
            $table->integer('invoices_id')->nullable();
            $table->integer('products_id')->nullable();
            $table->integer('purchases_id')->nullable();
            $table->integer('purchase_receipts_id')->nullable();
            $table->integer('quality_non_conformities_id')->nullable();
            $table->integer('quality_non_conformities_id')->nullable();
            $table->boolean('as_photo')->default(false);
            $table->timestamps();
        }); 
    } 
@SMEWebify
Copy link
Owner

SMEWebify commented Apr 21, 2024

Nice catch, I validated the pull request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working invalid This doesn't seem right
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants