Alter telegram_special_messages_table migration to change column types

This commit is contained in:
Matteo Gheza 2024-01-19 23:25:54 +01:00
parent 1e20e256a6
commit 41cc96e828
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
<?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('telegram_special_messages', function (Blueprint $table) {
$table->bigInteger('message_id')->change();
$table->bigInteger('user_id')->change();
$table->bigInteger('chat_id')->change();
});
}
/**
* Reverse the migrations.
*/
public function down()
{
Schema::table('telegram_special_messages', function (Blueprint $table) {
$table->integer('message_id')->change();
$table->integer('user_id')->change();
$table->integer('chat_id')->change();
});
}
};