Skip to content

Commit

Permalink
update migration for custom attribute values table
Browse files Browse the repository at this point in the history
  • Loading branch information
dvicklund committed Mar 6, 2022
1 parent a6c3123 commit 26e5ebb
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,11 @@ public function up()
$table->string('string_val', 8191)->nullable();
$table->decimal('num_val', 16, 4)->nullable(); // 123,456,789,012.3456
$table->dateTime('date_val')->nullable();
$table->timestamp('created_at')->useCurrent();
$table
->timestamp('updated_at')
->useCurrent()
->useCurrentOnUpdate();

$table->foreign('inventory_id')->references('id')->on('inventories')->onUpdate('restrict');
$table->foreign('custom_attribute_id')->references('id')->on('custom_attributes')->onUpdate('restrict');
Expand Down

0 comments on commit 26e5ebb

Please sign in to comment.