subtask.title, timeblock is_finished

This commit is contained in:
StudioTem committed 2023-05-22 15:57:16 +02:00
1 parent 34514e44c1
commit f3ed454d6f
5 files changed
+80 -1

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('timeblocks', function (Blueprint $table) {
$table->boolean('is_finished')->after('end')->default(false);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('timeblocks', 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->string('title')->after('user_id')->nullable()->default(null);
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('sub_task', function (Blueprint $table) {
//
});
}
};