Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class m141022_130445_create_subscription_offer_params_table extends EDbMigration
- {
- private $subscriptionOfferParamsTable = '{{yii_subscription_offer_params}}';
- //Параметры предложения подписки на канал
- public function safeUp()
- {
- $this->createTable($this->subscriptionOfferParamsTable, array(
- 'id' => 'bigint unsigned not null primary key',
- 'time until the proposal' => 'integer unsigned', //время до появления предложения
- 'Bid-to-lock' => 'string not null', //Предложение до блокировки
- 'Time to block views' => 'integer unsigned not null',//Время до блокировки просмотра
- 'bid after locking' => 'string not null',//предложение после блокировки
- ), 'engine=InnoDB default charset=utf8');
- }
- public function safeDown()
- {
- $this->dropTable($this->subscriptionOfferParamsTable);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement