Added item_id foreign key column in sticker mapping master table
Some checks failed
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 13s
Gemini PR Review / Gemini PR Review (pull_request) Failing after 10s
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (pull_request) Successful in 12s
Laravel Larastan / larastan (pull_request) Failing after 33s
Laravel Pint / pint (pull_request) Failing after 46s

This commit is contained in:
dhanabalan
2026-09-21 18:07:02 +05:30
parent b082982f4a
commit cc6d45767b

View File

@@ -0,0 +1,33 @@
<?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
{
$sql = <<<'SQL'
ALTER TABLE sticker_mapping_masters
ADD COLUMN item_id BIGINT DEFAULT NULL,
ADD CONSTRAINT sticker_mapping_masters_item_id_fkey
FOREIGN KEY (item_id) REFERENCES items(id);
SQL;
DB::statement($sql);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
// Schema::table('sticker_mapping_masters', function (Blueprint $table) {
// //
// });
}
};