<commit_before><?php

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

class CreateMvsessionsTable extends Migration {

	/**
	 * Create Session time schema to run  for the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('mvsessions', function(Blueprint $table)
		{
			$table->increments('id');
			$table->timestamp('session_time');
			$table->timestamps();
            // $table->softDeletes();
		});

        // create pivot table : cinema, mvsessions => cinema_mvsession
        Schema::create('cinema_mvsession', function(Blueprint $table)
        {
			$table->integer('cinema_id')->unsigned()->index();
			$table->integer('mvsesion_id')->unsigned()->index();
			$table->timestamps();
            $table->foreign('cinema_id')->references('id')->on('cinema')->onDelete('cascade');
        });

        // create pivot table : movies, mvsessions => movie_mvsession
        Schema::create('movie_mvsession', function(Blueprint $table)
        {
			$table->integer('movie_id')->unsigned()->index();
			$table->integer('mvsesion_id')->unsigned()->index();
			$table->timestamps();
			$table->foreign('movie_id')->references('id')->on('movies')->onDelete('cascade');
        });
	}

	/**
	 * Drpo Session time tables to reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('mvsessions');
		Schema::drop('cinema_mvsession');
		Schema::drop('movie_mvsession');
	}

}<commit_msg>Further changes to Sessions pivot table -bergynj<commit_after><?php

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

class CreateMvsessionsTable extends Migration {

	/**
	 * Create Session time schema to run  for the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::create('mvsessions', function(Blueprint $table)
		{
			$table->increments('id');
			$table->timestamp('session_time');
			$table->timestamps();
            // $table->softDeletes();
		});

        // create pivot table : cinema, mvsessions => cinema_mvsession
        Schema::create('cinema_mvsession', function(Blueprint $table)
        {
			$table->integer('cinema_id')->unsigned()->index();
			$table->integer('mvsesion_id')->unsigned()->index();
			$table->timestamps();
            $table->foreign('cinema_id')->references('id')->on('cinema')->onDelete('cascade');
            $table->foreign('mvsesion_id')->references('id')->on('mvsessions');
        });

        // create pivot table : movies, mvsessions => movie_mvsession
        Schema::create('movie_mvsession', function(Blueprint $table)
        {
			$table->integer('movie_id')->unsigned()->index();
			$table->integer('mvsesion_id')->unsigned()->index();
			$table->timestamps();
			$table->foreign('movie_id')->references('id')->on('movies')->onDelete('cascade');
            $table->foreign('mvsesion_id')->references('id')->on('mvsessions');
        });
	}

	/**
	 * Drop Session time tables to reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schema::drop('mvsessions');
		Schema::drop('cinema_mvsession');
		Schema::drop('movie_mvsession');
	}

}
{'fraction_non_alphanumeric': 0.18558330698703762, 'fraction_numerical': 0.0, 'mean_word_length': 3.852760736196319, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 65, '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': '7659941', 'n_tokens_mistral': 1035, 'n_tokens_neox': 957, 'n_words': 152}