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

Remove duplicated columns in migration script #358

Merged

Conversation

sunxiaoguang
Copy link
Contributor

@sunxiaoguang sunxiaoguang commented Apr 21, 2024

Closes: #359

There are two quality_non_conformities_id columns in 2022_07_23_150511_create_files_table.php

    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();
        }); 
    }

There are two `quality_non_conformities_id` columns in
2022_07_23_150511_create_files_table.php

Signed-off-by: Xiaoguang Sun <sunxiaoguang@gmail.com>
@SMEWebify SMEWebify self-assigned this Apr 21, 2024
@SMEWebify SMEWebify added the invalid This doesn't seem right label Apr 21, 2024
@SMEWebify SMEWebify merged commit 7806414 into SMEWebify:WEM-2.0 Apr 21, 2024
1 check passed
@sunxiaoguang sunxiaoguang deleted the remove_duplicated_columns_definition branch April 21, 2024 14:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right
Projects
None yet
Development

Successfully merging this pull request may close these issues.

There are two quality_non_conformities_id columns in 2022_07_23_150511_create_files_table.php
2 participants