mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-31 15:57:33 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?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('licenses', function (Blueprint $table) {
 | |
|             $table->increments('id');
 | |
|             $table->timestamps();
 | |
|             $table->softDeletes();
 | |
|             $table->string('first_name')->nullable();
 | |
|             $table->string('last_name')->nullable();
 | |
|             $table->string('email')->nullable();
 | |
|             $table->string('license_key')->unique()->nullable();
 | |
|             $table->boolean('is_claimed')->nullable();
 | |
|             $table->string('transaction_reference')->nullable();
 | |
|             $table->unsignedInteger('product_id')->nullable();
 | |
|         });
 | |
|     }
 | |
| 
 | |
|     /**
 | |
|      * Reverse the migrations.
 | |
|      *
 | |
|      * @return void
 | |
|      */
 | |
|     public function down()
 | |
|     {
 | |
|         Schema::dropIfExists('licenses');
 | |
|     }
 | |
| };
 |