<commit_before><?php

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

class InitialMigration extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::connection('harmony')->create('machine', function(Blueprint $table)
		{
			$table->engine = 'InnoDB';

			$table->bigInteger('id')->unsigned();
			$table->string('name', 32);
			$table->string('hostname', 64);
			$table->string('ip', 16);
			$table->string('es_client_id', 36)->nullable()->defualt(null);
			$table->timestamps();

			$table->primary('id');
			$table->unique('name');
		});

		Schema::connection('harmony')->create('container', function(Blueprint $table)
		{
			$table->engine = 'InnoDB';

			$table->bigInteger('id')->unsigned();
			$table->bigInteger('machine_id')->unsigned()->nullable()->default(null);
			$table->string('cid'        , 64)->nullable()->default(null);
			$table->string('name'       , 30);
			$table->string('hostname'   , 64);
			$table->string('restart'    , 16)->nullable()->default(null);
			$table->string('image'      , 128);
			$table->string('cmd'        , 128)->nullable()->default(null);
			$table->string('entry_point', 128)->nullable()->default(null);
			$table->boolean('interactive')->default(false);
			$table->boolean('tty')->default(false);
			$table->boolean('enabled')->default(false);
			$table->timestamps();
<commit_msg>DB.Containers: increase container name length limit to 64, from 30<commit_after><?php

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

class InitialMigration extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		Schema::connection('harmony')->create('machine', function(Blueprint $table)
		{
			$table->engine = 'InnoDB';

			$table->bigInteger('id')->unsigned();
			$table->string('name', 32);
			$table->string('hostname', 64);
			$table->string('ip', 16);
			$table->string('es_client_id', 36)->nullable()->defualt(null);
			$table->timestamps();

			$table->primary('id');
			$table->unique('name');
		});

		Schema::connection('harmony')->create('container', function(Blueprint $table)
		{
			$table->engine = 'InnoDB';

			$table->bigInteger('id')->unsigned();
			$table->bigInteger('machine_id')->unsigned()->nullable()->default(null);
			$table->string('cid'        , 64)->nullable()->default(null);
			$table->string('name'       , 64);
			$table->string('hostname'   , 64);
			$table->string('restart'    , 16)->nullable()->default(null);
			$table->string('image'      , 128);
			$table->string('cmd'        , 128)->nullable()->default(null);
			$table->string('entry_point', 128)->nullable()->default(null);
			$table->boolean('interactive')->default(false);
			$table->boolean('tty')->default(false);
			$table->boolean('enabled')->default(false);
			$table->timestamps();

{'fraction_non_alphanumeric': 0.22158900435802883, 'fraction_numerical': 0.018102581293999328, 'mean_word_length': 4.536178107606679, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 89, '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': '7056897', 'n_tokens_mistral': 1083, 'n_tokens_neox': 944, 'n_words': 131}