<commit_before><?php

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

class CreateFormDesignerTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('form_designer', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('data_type_id')->unsigned()->nullable();
            $table->json('options');

            $table->foreign('data_type_id')->references('id')->on('data_types')
                ->onDelete('set null');
        });
    }

    /**<commit_msg>change type json to text for options in form designer<commit_after><?php

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

class CreateFormDesignerTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('form_designer', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('data_type_id')->unsigned()->nullable();
            $table->text('options');

            $table->foreign('data_type_id')->references('id')->on('data_types')
                ->onDelete('set null');
        });
    }

    /**
{'fraction_non_alphanumeric': 0.15273775216138327, 'fraction_numerical': 0.0, 'mean_word_length': 2.655263157894737, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 21, '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': '7062755', 'n_tokens_mistral': 390, 'n_tokens_neox': 397, 'n_words': 67}