Skip to content

Commit fa9ad56

Browse files
committed
Use softDeletes on inventory_stocks and inventory_stock_movements by default
1 parent 78e804f commit fa9ad56

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/migrations/2014_07_31_123213_create_inventory_tables.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public function up()
1414
$table->increments('id');
1515
$table->timestamps();
1616
$table->softDeletes();
17+
1718
$table->integer('category_id')->unsigned()->nullable();
1819
$table->integer('user_id')->unsigned()->nullable();
1920
$table->integer('metric_id')->unsigned();
@@ -36,6 +37,7 @@ public function up()
3637
Schema::create('inventory_stocks', function (Blueprint $table) {
3738
$table->increments('id');
3839
$table->timestamps();
40+
$table->softDeletes();
3941

4042
$table->integer('user_id')->unsigned()->nullable();
4143
$table->integer('inventory_id')->unsigned();
@@ -46,8 +48,8 @@ public function up()
4648
$table->string('bin')->nullable();
4749

4850
/*
49-
* This allows only one inventory stock to be created
50-
* on a single location
51+
* This allows only one inventory stock
52+
* to be created on a single location
5153
*/
5254
$table->unique(['inventory_id', 'location_id']);
5355

@@ -67,6 +69,7 @@ public function up()
6769
Schema::create('inventory_stock_movements', function (Blueprint $table) {
6870
$table->increments('id');
6971
$table->timestamps();
72+
$table->softDeletes();
7073

7174
$table->integer('stock_id')->unsigned();
7275
$table->integer('user_id')->unsigned()->nullable();

0 commit comments

Comments
 (0)