32 lines
		
	
	
		
			610 B
		
	
	
	
		
			PHP
		
	
	
	
		
		
			
		
	
	
			32 lines
		
	
	
		
			610 B
		
	
	
	
		
			PHP
		
	
	
	
|  | <?php | ||
|  | 
 | ||
|  | use Illuminate\Database\Schema\Blueprint; | ||
|  | use Illuminate\Database\Migrations\Migration; | ||
|  | 
 | ||
|  | class CreateSettingsTable extends Migration | ||
|  | { | ||
|  |     /** | ||
|  |      * Run the migrations. | ||
|  |      * | ||
|  |      * @return void | ||
|  |      */ | ||
|  |     public function up() | ||
|  |     { | ||
|  |         Schema::create('settings', function (Blueprint $table) { | ||
|  |             $table->string('setting_key')->primary()->indexed(); | ||
|  |             $table->text('value'); | ||
|  |             $table->timestamps(); | ||
|  |         }); | ||
|  |     } | ||
|  | 
 | ||
|  |     /** | ||
|  |      * Reverse the migrations. | ||
|  |      * | ||
|  |      * @return void | ||
|  |      */ | ||
|  |     public function down() | ||
|  |     { | ||
|  |         Schema::drop('settings'); | ||
|  |     } | ||
|  | } |