Karat service

This commit is contained in:
StudioTem committed 2023-02-23 07:39:29 +01:00
1 parent e575fabff0
commit cba2118366
6 files changed
+181

No files matched your search

@@ -0,0 +1,32 @@
<?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::table('master_tasks', function (Blueprint $table) {
$table->foreignIdFor( \App\Models\User::class, 'created_by')->after('team_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('master_tasks', function (Blueprint $table) {
//
});
}
};
@@ -0,0 +1,32 @@
<?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::table('sub_tasks', function (Blueprint $table) {
$table->foreignIdFor( \App\Models\User::class, 'created_by')->after('master_task_id');
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('sub_tasks', function (Blueprint $table) {
//
});
}
};