mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-23 01:46:27 +02:00
Compare commits
No commits in common. "347084b5c466d793d6fa19bbc7a95ea843e27233" and "7c94c2419229d47632e8cb3418f9f10949eaa4f0" have entirely different histories.
347084b5c4
...
7c94c24192
2 changed files with 0 additions and 48 deletions
|
@ -1,24 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
class AddIndexToSmsTimestamps extends AbstractMigration
|
||||
{
|
||||
/**
|
||||
* Add indexes on most SMS table timestamp (and possibly other fields) to improve perfs on query using date, like stats, sending limits, etc.
|
||||
*/
|
||||
public function change()
|
||||
{
|
||||
$table = $this->table('sended');
|
||||
$table->addIndex('at');
|
||||
$table->update();
|
||||
|
||||
$table = $this->table('received');
|
||||
$table->addIndex('at');
|
||||
$table->update();
|
||||
|
||||
$table = $this->table('scheduled');
|
||||
$table->addIndex('at');
|
||||
$table->update();
|
||||
}
|
||||
}
|
|
@ -1,24 +0,0 @@
|
|||
<?php
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
class AddIndexOnSendedUid extends AbstractMigration
|
||||
{
|
||||
/**
|
||||
* Modify sended uid and call to be 100 char long, we dont need a 500 char uid and too long a char ss hurting perfs
|
||||
* Add index on sended uid to make status update more efficient
|
||||
*/
|
||||
public function change()
|
||||
{
|
||||
$table = $this->table('sended');
|
||||
$table->changeColumn('uid', 'string', ['limit' => 100]);
|
||||
$table->addIndex('uid');
|
||||
$table->update();
|
||||
|
||||
|
||||
$table = $this->table('call');
|
||||
$table->changeColumn('uid', 'string', ['limit' => 100]);
|
||||
$table->addIndex('uid');
|
||||
$table->update();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue