mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-22 09:26:27 +02:00
Add new webhook when SMS fail to send
This commit is contained in:
parent
b8e587a59e
commit
c3fb8be0ad
5 changed files with 43 additions and 1 deletions
27
db/migrations/20210414090016_add_send_error_webhook.php
Normal file
27
db/migrations/20210414090016_add_send_error_webhook.php
Normal file
|
@ -0,0 +1,27 @@
|
|||
<?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();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue