mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-10-30 20:22:58 -04:00 
			
		
		
		
	Merge pull request #7494 from CirkaN/Cirkovic/INA-5-migration
INA-5 | Push alter migration fix for schedulers table
This commit is contained in:
		
						commit
						20157a82c3
					
				| @ -30,9 +30,6 @@ class CreateSchedulersTable extends Migration | |||||||
|             $table->timestamp('start_from'); |             $table->timestamp('start_from'); | ||||||
|             $table->timestamp('scheduled_run'); |             $table->timestamp('scheduled_run'); | ||||||
|             $table->foreignIdFor(\App\Models\Company::class); |             $table->foreignIdFor(\App\Models\Company::class); | ||||||
|             $table->string('action_name')->index(); |  | ||||||
|             $table->string('action_class'); |  | ||||||
|             $table->json('parameters')->nullable(); |  | ||||||
|             $table->timestamps(); |             $table->timestamps(); | ||||||
|             $table->softDeletes(); |             $table->softDeletes(); | ||||||
|         }); |         }); | ||||||
|  | |||||||
| @ -0,0 +1,42 @@ | |||||||
|  | <?php | ||||||
|  | /** | ||||||
|  |  * Invoice Ninja (https://invoiceninja.com). | ||||||
|  |  * | ||||||
|  |  * @link https://github.com/invoiceninja/invoiceninja source repository | ||||||
|  |  * | ||||||
|  |  * @copyright Copyright (c) 2021. Invoice Ninja LLC (https://invoiceninja.com) | ||||||
|  |  * | ||||||
|  |  * @license https://opensource.org/licenses/AAL | ||||||
|  |  */ | ||||||
|  | use Illuminate\Database\Migrations\Migration; | ||||||
|  | use Illuminate\Database\Schema\Blueprint; | ||||||
|  | use Illuminate\Support\Facades\Schema; | ||||||
|  | 
 | ||||||
|  | class AddJobRelatedFieldsToSchedulersTable extends Migration | ||||||
|  | { | ||||||
|  |     /** | ||||||
|  |      * Run the migrations. | ||||||
|  |      * | ||||||
|  |      * @return void | ||||||
|  |      */ | ||||||
|  |     public function up() | ||||||
|  |     { | ||||||
|  |         Schema::table('schedulers', function (Blueprint $table) { | ||||||
|  |             $table->string('action_name')->index(); | ||||||
|  |             $table->string('action_class'); | ||||||
|  |             $table->json('parameters')->nullable(); | ||||||
|  |         }); | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|  |     /** | ||||||
|  |      * Reverse the migrations. | ||||||
|  |      * | ||||||
|  |      * @return void | ||||||
|  |      */ | ||||||
|  |     public function down() | ||||||
|  |     { | ||||||
|  |         Schema::table('schedulers', function (Blueprint $table) { | ||||||
|  |             //
 | ||||||
|  |         }); | ||||||
|  |     } | ||||||
|  | } | ||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user