removed foreign key item characteristic in sticker mapping master #1066
@@ -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) {
|
||||||
|
// //
|
||||||
|
// });
|
||||||
|
}
|
||||||
|
};
|
||||||
Reference in New Issue
Block a user