From d0d29e03dbce2db7886f5c76a80b01f08a2464ab Mon Sep 17 00:00:00 2001 From: snipe Date: Wed, 28 Feb 2024 11:06:01 +0000 Subject: [PATCH] Migration for min_amt on licenses Signed-off-by: snipe --- ...4_02_28_093807_add_min_qty_to_licenses.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2024_02_28_093807_add_min_qty_to_licenses.php diff --git a/database/migrations/2024_02_28_093807_add_min_qty_to_licenses.php b/database/migrations/2024_02_28_093807_add_min_qty_to_licenses.php new file mode 100644 index 000000000..0cdfa1f87 --- /dev/null +++ b/database/migrations/2024_02_28_093807_add_min_qty_to_licenses.php @@ -0,0 +1,34 @@ +integer('min_amt')->nullable()->default(null); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('licenses', function (Blueprint $table) { + if (Schema::hasColumn('licenses', 'min_amt')) { + $table->dropColumn('min_amt'); + } + }); + } +}