mirror of
https://bitbucket.org/studiotem/jandl-taskmanager-app.git
synced 2026-10-21 14:29:34 +00:00
adding draft subtask logic to backend
This commit is contained in:
1 parent
570e29e5c4
commit
21ad81cee7
5 files changed
+136
-11
No files matched your search
@@ -0,0 +1,33 @@
|
||||
<?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->boolean('is_draft')->default(false)->after('is_finished');
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('sub_tasks', function (Blueprint $table) {
|
||||
$table->dropColumn('is_draft');
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user