removed foreign key item characteristic in sticker mapping master #1066

Merged
jothi merged 1 commits from ranjith-dev into master 2026-09-21 12:35:06 +00:00

View File

@@ -0,0 +1,36 @@
<?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
{
// Drop foreign key constraint
DB::statement('
ALTER TABLE sticker_mapping_masters
DROP CONSTRAINT IF EXISTS sticker_mapping_masters_item_characteristic_id_fkey
');
// Drop column
DB::statement('
ALTER TABLE sticker_mapping_masters
DROP COLUMN IF EXISTS item_characteristic_id
');
}
/**
* Reverse the migrations.
*/
public function down(): void
{
// Schema::table('sticker_mapping_masters', function (Blueprint $table) {
// //
// });
}
};