mega-commit: migrations, controllers, models, etc.
This commit is contained in:
		
							parent
							
								
									9732135e90
								
							
						
					
					
						commit
						2c6745e812
					
				
					 70 changed files with 2124 additions and 400 deletions
				
			
		|  | @ -1,33 +0,0 @@ | |||
| <?php | ||||
| 
 | ||||
| use Illuminate\Database\Migrations\Migration; | ||||
| use Illuminate\Database\Schema\Blueprint; | ||||
| use Illuminate\Support\Facades\Schema; | ||||
| 
 | ||||
| return new class extends Migration | ||||
| { | ||||
|     /** | ||||
|      * Run the migrations. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function up() | ||||
|     { | ||||
|         Schema::create('permissions', function (Blueprint $table) { | ||||
|             $table->id('permission_id'); | ||||
|             $table->timestamps(); | ||||
|             $table->addColumn('string', 'permission_name', ['length' => 255]); | ||||
|             $table->unique(['permission_name']); | ||||
|         }); | ||||
|     } | ||||
| 
 | ||||
|     /** | ||||
|      * Reverse the migrations. | ||||
|      * | ||||
|      * @return void | ||||
|      */ | ||||
|     public function down() | ||||
|     { | ||||
|         Schema::dropIfExists('permissions'); | ||||
|     } | ||||
| }; | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue