feat: form progress bar (#334)
* feat: form progress bar * complete progress bar implementation * fix lint --------- Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
31
database/migrations/2024_03_12_173732_show_progress_bar.php
Normal file
31
database/migrations/2024_03_12_173732_show_progress_bar.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?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('forms', function (Blueprint $table) {
|
||||
$table->boolean('show_progress_bar')->default(false);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::table('forms', function (Blueprint $table) {
|
||||
$table->dropColumn('show_progress_bar');
|
||||
});
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user