Initial Upload
This commit is contained in:
21
db/migrations/20180131123248_widget_from_to_dt_migration.php
Normal file
21
db/migrations/20180131123248_widget_from_to_dt_migration.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
|
||||
use Phinx\Migration\AbstractMigration;
|
||||
|
||||
class WidgetFromToDtMigration extends AbstractMigration
|
||||
{
|
||||
/**
|
||||
* Change Method.
|
||||
*/
|
||||
public function change()
|
||||
{
|
||||
$widget = $this->table('widget');
|
||||
$widget
|
||||
->addColumn('fromDt', 'integer')
|
||||
->addColumn('toDt', 'integer')
|
||||
->save();
|
||||
|
||||
$this->execute('UPDATE `widget` SET fromDt = 0, toDt = 2147483647;');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user