<?php

use Phinx\Migration\AbstractMigration;

class AddTelegramSendPhotoTable extends AbstractMigration
{
    public function up()
    {
        $table = $this->table('telegram_send_photo');

        $table->addColumn('chat_id', 'string');
        $table->addColumn('path', 'string');
        $table->addColumn('published_at', 'timestamp');
        $table->addColumn('status', 'string');
        $table->addColumn('file_id', 'string');
        $table->addColumn('created_at', 'timestamp', [
            'default' => 'CURRENT_TIMESTAMP',
            'update' => ''
        ]);

        $table->create();
    }
}

<?php

use Phinx\Migration\AbstractMigration;

class AddTelegramSendPhotoTable extends AbstractMigration
{
    public function up()
    {
        $table = $this->table('telegram_send_photo');

        $table->addColumn('chat_id', 'string');
        $table->addColumn('path', 'string');
        $table->addColumn('published_at', 'timestamp');
        $table->addColumn('created_at', 'timestamp', [
            'default' => 'CURRENT_TIMESTAMP',
            'update' => ''
        ]);

        $table->create();
    }
}

Remove unused fields from telegram_send_photo table
Remove unused fields from telegram_send_photo table
