Skip to content

Commit

Permalink
Merge pull request #27 from masinde2024/master
Browse files Browse the repository at this point in the history
to decimal
  • Loading branch information
alkadoHs authored Mar 4, 2024
2 parents 067648a + e8feabd commit c1c7e59
Showing 1 changed file with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

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

return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table('products', function (Blueprint $table) {
$table->decimal('stock', 10, 2)->change();
});
}

/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('products', function (Blueprint $table) {
$table->integer('stock')->change();
});
}
};

0 comments on commit c1c7e59

Please sign in to comment.