Add default_transaction_type column to users table
ADD
database/migrations/2020_09_28_153744_add_default_transaction_type_column_to_users_table.php
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+class AddDefaultTransactionTypeColumnToUsersTable extends Migration
+{
+ public function up(): void
+ {
+ Schema::table('users', function (Blueprint $table) {
+ $table->string('default_transaction_type')->default('earning')->after('weekly_report');
+ });
+ }
+
+ public function down(): void
+ {
+ Schema::table('users', function (Blueprint $table) {
+ $table->dropColumn('default_transaction_type');
+ });
+ }
+}

Add default_transaction_type column to users table