artisan migrate --pretend

1 개요[ | ]

artisan migrate --pretend
<?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
    {
        Schema::create('reactions', function (Blueprint $table) {
            $table->integer('page_id')->unsigned();
            $table->integer('user_id')->unsigned();
            $table->integer('emoji_code')->unsigned();
            $table->primary(['page_id', 'user_id', 'emoji_code']);
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('reactions');
    }
};
# php artisan migrate --pretend

   INFO  Running migrations.  

  2023_12_10_000000_create_reactions_table ...................................................................................  
  ⇂ create table `reactions` (`page_id` int unsigned not null, `user_id` int unsigned not null, `emoji_code` int unsigned not null) default character set utf8mb4 collate 'utf8mb4_unicode_ci'  
  ⇂ alter table `reactions` add primary key (`page_id`, `user_id`, `emoji_code`)


2 같이 보기[ | ]

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}