mirror of
				https://github.com/cp6/my-idlers.git
				synced 2025-11-03 15:49:09 +00:00 
			
		
		
		
	
		
			
	
	
		
			24 lines
		
	
	
	
		
			532 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
	
		
			532 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| 
								 | 
							
								<?php
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								use Illuminate\Database\Migrations\Migration;
							 | 
						||
| 
								 | 
							
								use Illuminate\Database\Schema\Blueprint;
							 | 
						||
| 
								 | 
							
								use Illuminate\Support\Facades\Schema;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								return new class extends Migration
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								    public function up()
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        Schema::create('notes', function (Blueprint $table) {
							 | 
						||
| 
								 | 
							
								            $table->char('id', 8)->primary();
							 | 
						||
| 
								 | 
							
								            $table->char('service_id', 8)->unique();
							 | 
						||
| 
								 | 
							
								            $table->text('note');
							 | 
						||
| 
								 | 
							
								            $table->timestamps();
							 | 
						||
| 
								 | 
							
								        });
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								    public function down()
							 | 
						||
| 
								 | 
							
								    {
							 | 
						||
| 
								 | 
							
								        Schema::dropIfExists('notes');
							 | 
						||
| 
								 | 
							
								    }
							 | 
						||
| 
								 | 
							
								};
							 |