<commit_before><commit_msg>tabela przechowujaca userow obserwujacych dany wpis<commit_after><?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateMicroblogWatchTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('microblog_watch', function (Blueprint $table) {
            $table->mediumInteger('microblog_id');
            $table->mediumInteger('user_id');

            $table->unique(['microblog_id', 'user_id']);

            $table->foreign('user_id')->references('id')->on('users')->onDelete('cascade');
            $table->foreign('microblog_id')->references('id')->on('microblogs')->onDelete('cascade');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('microblog_watch');
    }
}
{'fraction_non_alphanumeric': 0.1568836712913554, 'fraction_numerical': 0.0, 'mean_word_length': 2.860082304526749, 'pattern_counts': {'":': 0, '<': 4, '<?xml version=': 0, '>': 14, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6721648', 'n_tokens_mistral': 286, 'n_tokens_neox': 277, 'n_words': 41}