mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-20 16:37:48 +02:00
27 lines
579 B
PHP
27 lines
579 B
PHP
<?php
|
|
|
|
|
|
use Phinx\Migration\AbstractMigration;
|
|
|
|
class AddSendErrorWebhook extends AbstractMigration
|
|
{
|
|
/**
|
|
* Migrate Up.
|
|
*/
|
|
public function up()
|
|
{
|
|
$users = $this->table('webhook');
|
|
$users->changeColumn('type', 'enum', ['values' => ['send_sms', 'receive_sms', 'send_sms_error']])
|
|
->save();
|
|
}
|
|
|
|
/**
|
|
* Migrate Down.
|
|
*/
|
|
public function down()
|
|
{
|
|
$users = $this->table('webhook');
|
|
$users->changeColumn('type', 'enum', ['values' => ['send_sms', 'receive_sms']])
|
|
->save();
|
|
}
|
|
}
|