Merge pull request 'removed foreign key item characteristic in sticker mapping master' (#1066) from ranjith-dev into master
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s

Reviewed-on: #1066
This commit was merged in pull request #1066.
This commit is contained in:
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) {
// //
// });
}
};