mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-23 01:46:27 +02:00
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:
parent
66fa2ef434
commit
6f8c7d62b9
25 changed files with 195 additions and 180 deletions
18
db/migrations/20200303183903_add_id_phone_scheduled.php
Normal file
18
db/migrations/20200303183903_add_id_phone_scheduled.php
Normal 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();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue