hasTable('assistant_chat_sns')) { $table = $schema->getTable('assistant_chat_sns'); if (!$table->hasColumn('conversation_token')) { $table->addColumn('agency_conversation_token', Types::TEXT, [ 'notnull' => false, ]); $schemaChanged = true; } if (!$table->hasColumn('agency_pending_actions')) { $table->addColumn('agency_pending_actions', Types::TEXT, [ 'notnull' => false, ]); $schemaChanged = true; } } return $schemaChanged ? $schema : null; } }