Файл: database/migrations/2022_06_14_013748_v3_1_0.php
Строк: 74
<?php
use IlluminateDatabaseMigrationsMigration;
use IlluminateDatabaseSchemaBlueprint;
use IlluminateSupportFacadesSchema;
use IlluminateSupportFacadesDB;
return new class extends Migration
{
/**
* Run the migrations.
*
* @return void
*/
public function up()
{
DB::table('settings')->insert([
['name' => 'registration_tfa', 'value' => 0],
['name' => 'login_tfa', 'value' => 0],
['name' => 'webhook_user_store', 'value' => null],
['name' => 'webhook_user_update', 'value' => null],
['name' => 'webhook_user_destroy', 'value' => null],
['name' => 'razorpay', 'value' => null],
['name' => 'razorpay_key', 'value' => null],
['name' => 'razorpay_secret', 'value' => null],
['name' => 'razorpay_wh_secret', 'value' => null],
['name' => 'paystack', 'value' => null],
['name' => 'paystack_key', 'value' => null],
['name' => 'paystack_secret', 'value' => null],
['name' => 'cryptocom', 'value' => null],
['name' => 'cryptocom_key', 'value' => null],
['name' => 'cryptocom_secret', 'value' => null],
['name' => 'cryptocom_wh_secret', 'value' => null],
['name' => 'logo_dark', 'value' => 'logo_dark.svg']
]);
Schema::table('users', function (Blueprint $table) {
$table->timestamp('tfa_code_created_at')->after('billing_information')->nullable();
$table->string('tfa_code')->after('billing_information')->nullable();
$table->smallInteger('tfa')->after('billing_information')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};