Use id_phone instead of number in scheduled, use ftok to generate queue id, improve adapter interface, add popup error

This commit is contained in:
osaajani 2020-03-04 01:40:47 +01:00
parent 66fa2ef434
commit 6f8c7d62b9
25 changed files with 195 additions and 180 deletions

View file

@ -0,0 +1,18 @@
<?php
use Phinx\Migration\AbstractMigration;
class AddIdPhoneScheduled extends AbstractMigration
{
/**
* Add column id_phone in scheduled and remove origin
*/
public function change()
{
$table = $this->table('scheduled');
$table->removeColumn('origin')
->addColumn('id_phone', 'integer', ['null' => True])
->addForeignKey('id_phone', 'phone', 'id', ['delete'=> 'SET_NULL', 'update'=> 'CASCADE'])
->save();
}
}