mirror of
				https://github.com/janickiy/yii2-nomer
				synced 2025-03-09 15:39:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			30 lines
		
	
	
	
		
			626 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			30 lines
		
	
	
	
		
			626 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
use yii\db\Migration;
 | 
						|
 | 
						|
/**
 | 
						|
 * Handles the creation of table `notification_results`.
 | 
						|
 */
 | 
						|
class m171108_113716_create_notification_results_table extends Migration
 | 
						|
{
 | 
						|
    /**
 | 
						|
     * @inheritdoc
 | 
						|
     */
 | 
						|
    public function up()
 | 
						|
    {
 | 
						|
        $this->createTable('notification_results', [
 | 
						|
            'id' => $this->primaryKey(),
 | 
						|
            'notify_id' => $this->integer(),
 | 
						|
            'user_id' => $this->integer(),
 | 
						|
            'status' => $this->smallInteger()->defaultValue(0)
 | 
						|
        ]);
 | 
						|
    }
 | 
						|
 | 
						|
    /**
 | 
						|
     * @inheritdoc
 | 
						|
     */
 | 
						|
    public function down()
 | 
						|
    {
 | 
						|
        $this->dropTable('notification_results');
 | 
						|
    }
 | 
						|
}
 |