[Задача 12799] Добавил миграцию для создания поля user_ip

parent 5bbd8043
<?php
use Phinx\Migration\AbstractMigration;
class AddUserIpField extends AbstractMigration
{
public function change()
{
$this->table("messages")
->addColumn("user_ip", "string", [
"null" => true
])
->addIndex("user_ip")
->update();
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment