add columns to cartable
# Conflicts: # app/Http/Controllers/V3/RahdaranController.php
This commit is contained in:
@@ -12,10 +12,10 @@ return new class extends Migration
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('rahdaran', function (Blueprint $table) {
|
||||
$table->unsignedTinyInteger('province_id');
|
||||
$table->unsignedTinyInteger('province_id')->nullable();
|
||||
$table->foreign('province_id')->references('id')->on('provinces');
|
||||
$table->string('province_name');
|
||||
$table->unsignedBigInteger('edareh_shahri_id');
|
||||
$table->string('province_name')->nullable();
|
||||
$table->unsignedBigInteger('edareh_shahri_id')->nullable();
|
||||
$table->foreign('edareh_shahri_id')->references('id')->on('edarate_shahri');
|
||||
$table->boolean('is_driver')->default(false);
|
||||
});
|
||||
@@ -29,7 +29,7 @@ return new class extends Migration
|
||||
Schema::table('rahdaran', function (Blueprint $table) {
|
||||
$table->dropForeign('province_id');
|
||||
$table->dropForeign('edareh_shahri_id');
|
||||
$table->dropColumn(['province_id', 'province_name']);
|
||||
$table->dropColumn(['province_id', 'province_name', 'edareh_shahri_id', 'is_driver']);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user