mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
INA-5 | Push alter migration fix for schedulers table
This commit is contained in:
parent
f98bdc19ae
commit
78535d676e
@ -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