We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug Running migrate failed with duplicate columns in 2022_07_23_150511_create_files_table
2022_07_23_150511_create_files_table
To Reproduce Steps to reproduce the behavior: php artisan migrate
Expected behavior Migrate succeed
Screenshots
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
database/migrations/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(); }); }
The text was updated successfully, but these errors were encountered:
Nice catch, I validated the pull request
Sorry, something went wrong.
sunxiaoguang
Successfully merging a pull request may close this issue.
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
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 nameThe text was updated successfully, but these errors were encountered: