Merge branch 'develop' into feature/CheckPaymentHarim
This commit is contained in:
@@ -13,7 +13,6 @@ return new class extends Migration
|
||||
{
|
||||
Schema::table('harims', function (Blueprint $table) {
|
||||
$table->longText('data')->nullable();
|
||||
$table->string('token', 255)->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
@@ -23,7 +22,7 @@ return new class extends Migration
|
||||
public function down(): void
|
||||
{
|
||||
Schema::table('harims', function (Blueprint $table) {
|
||||
$table->dropColumn(['data', 'token']);
|
||||
$table->dropColumn('data');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
<?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::create('panjareh_vahed_histories', function (Blueprint $table) {
|
||||
$table->id();
|
||||
$table->foreignId('harim_id')->constrained('harims');
|
||||
$table->longText('data');
|
||||
$table->tinyInteger('action')->default(0); // 0 => receive, 1 => send
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*/
|
||||
public function down(): void
|
||||
{
|
||||
Schema::dropIfExists('panjareh_vahed_histories');
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user