/** * Run the migrations. */ public function up() { Schema::create('version_number', function (Blueprint $table) { $table->increments('id'); // We are obliged to store over-long character set versions so that we can // correctly import files that use WINDOWS-1250 and WINDOWS-1252. <sigh> $table->string('value', GedcomSpecification::LENGTH_CHARACTER_SET + 4); $table->boolean('standard')->default(false); }); DB::transaction(function () { VersionNumber::unguard(); foreach ($this->data as $datum) { VersionNumber::create($datum); } VersionNumber::reguard(); }); }