daily pastebin goal
41%
SHARE
TWEET

Untitled

a guest Jan 29th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. use yii\db\Migration;
  4.  
  5. /**
  6.  * Class m180129_151606_deferred_postbacks
  7.  */
  8. class m180129_151606_deferred_postbacks extends Migration
  9. {
  10.    
  11.     const TABLE_NAME = '{{%deferred_postbacks}}';
  12.  
  13.     public function safeUp()
  14.     {
  15.         $this->createTable(self::TABLE_NAME, [
  16.             'id' => $this->primaryKey(),
  17.             'factory_data' => $this->text()->notNull(),
  18.             'response' => $this->text(),
  19.             'copleted_time' => $this->timestamp(),
  20.             'created_at' => $this->timestamp()->notNull(),
  21.         ]);
  22.     }
  23.  
  24.  
  25.     public function safeDown()
  26.     {
  27.         $this->dropTable(self::TABLE_NAME);
  28.     }
  29. }
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top