mirror of
				https://github.com/elyby/accounts.git
				synced 2025-05-31 14:11:46 +05:30 
			
		
		
		
	Implemented account deletion. Not all cases covered with tests [skip ci]
This commit is contained in:
		
							
								
								
									
										15
									
								
								console/migrations/m200611_123017_accounts_deletion.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										15
									
								
								console/migrations/m200611_123017_accounts_deletion.php
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,15 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
use console\db\Migration;
 | 
			
		||||
 | 
			
		||||
class m200611_123017_accounts_deletion extends Migration {
 | 
			
		||||
 | 
			
		||||
    public function safeUp() {
 | 
			
		||||
        $this->addColumn('accounts', 'deleted_at', $this->integer(11)->unsigned());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public function safeDown() {
 | 
			
		||||
        $this->dropColumn('accounts', 'deleted_at');
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user