37 lines
		
	
	
		
			806 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			37 lines
		
	
	
		
			806 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| use Illuminate\Database\Migrations\Migration;
 | |
| use Illuminate\Database\Schema\Blueprint;
 | |
| 
 | |
| class CreateRatingsTable extends Migration
 | |
| {
 | |
|     /**
 | |
|      * Run the migrations.
 | |
|      *
 | |
|      * @return void
 | |
|      */
 | |
|     public function up()
 | |
|     {
 | |
|         Schema::create('ratings', function (Blueprint $table) {
 | |
|             $table->increments('id');
 | |
|             $table->string('name');
 | |
|             $table->integer('display_order');
 | |
|             $table->integer('allow_modification');
 | |
|             $table->integer('rating_scale');
 | |
|             $table->string('rating_area');
 | |
|             $table->string('restrict');
 | |
|             $table->timestamps();
 | |
|         });
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Reverse the migrations.
 | |
|      *
 | |
|      * @return void
 | |
|      */
 | |
|     public function down()
 | |
|     {
 | |
|         Schema::drop('ratings');
 | |
|     }
 | |
| }
 | 
