Changed currency_code column length

This commit is contained in:
Cüneyt Şentürk
2022-03-23 09:33:24 +03:00
parent 24c6de398b
commit cbabdb3da5
3 changed files with 65 additions and 0 deletions

View File

@ -0,0 +1,34 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
Schema::table('contacts', function (Blueprint $table) {
$table->string('currency_code')->change();
});
Schema::table('transactions', function (Blueprint $table) {
$table->string('currency_code')->change();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};