Compare commits
1 Commits
develop
...
feature/me
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9ab97b30e8 |
@@ -1,33 +0,0 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
return new class extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*/
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('broadcasts', function (Blueprint $table) {
|
||||
$table->foreignId('marketing_channel_id')
|
||||
->nullable()
|
||||
->after('business_id')
|
||||
->constrained('marketing_channels')
|
||||
->nullOnDelete();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('broadcasts', function (Blueprint $table) {
|
||||
$table->dropForeign(['marketing_channel_id']);
|
||||
$table->dropColumn('marketing_channel_id');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user