Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2014
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. <?php
  2.  
  3. class m141022_130445_create_subscription_offer_params_table extends EDbMigration
  4. {
  5. private $subscriptionOfferParamsTable = '{{yii_subscription_offer_params}}';
  6. //Параметры предложения подписки на канал
  7.  
  8. public function safeUp()
  9. {
  10. $this->createTable($this->subscriptionOfferParamsTable, array(
  11. 'id' => 'bigint unsigned not null primary key',
  12. 'time until the proposal' => 'integer unsigned', //время до появления предложения
  13. 'Bid-to-lock' => 'string not null', //Предложение до блокировки
  14. 'Time to block views' => 'integer unsigned not null',//Время до блокировки просмотра
  15. 'bid after locking' => 'string not null',//предложение после блокировки
  16. ), 'engine=InnoDB default charset=utf8');
  17. }
  18.  
  19. public function safeDown()
  20. {
  21. $this->dropTable($this->subscriptionOfferParamsTable);
  22. }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement