Skip to content

Commit

Permalink
Fixed data-types in promotion migrations
Browse files Browse the repository at this point in the history
  • Loading branch information
fulopattila122 committed Aug 23, 2024
1 parent 6180b17 commit ce61c97
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function up(): void
{
Schema::create('coupons', function (Blueprint $table) {
$table->id();
$table->unsignedInteger('promotion_id');
$table->foreignId('promotion_id');
$table->foreign('promotion_id')->references('id')->on('promotions');

$table->string('code')->unique();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function up(): void
{
Schema::create('promotion_rules', function (Blueprint $table) {
$table->id();
$table->unsignedInteger('promotion_id');
$table->foreignId('promotion_id');
$table->string('type');
$table->json('configuration')->nullable();
$table->timestamps();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public function up(): void
{
Schema::create('promotion_actions', function (Blueprint $table) {
$table->id();
$table->unsignedInteger('promotion_id');
$table->foreignId('promotion_id');
$table->string('type');
$table->json('configuration')->nullable();
$table->timestamps();
Expand Down

0 comments on commit ce61c97

Please sign in to comment.