Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit cc12f394 authored by 64160295's avatar 64160295
Browse files

migrate benefits

parent 3d749e14
No related branches found
No related tags found
1 merge request!12proof tranfer update
...@@ -35,6 +35,7 @@ public function up() ...@@ -35,6 +35,7 @@ public function up()
$table->integer('mem_balance')->nullable(); $table->integer('mem_balance')->nullable();
$table->string('password')->nullable(); $table->string('password')->nullable();
$table->string('address_id')->nullable(); $table->string('address_id')->nullable();
$table->timestamps();
}); });
DB::table('Member')->insert([ DB::table('Member')->insert([
[ [
......
<?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::create('Benefits', function (Blueprint $table){
$table->id();
$table->string('ben_name');
$table->string('ben_member_relation')->nullable();
$table->string('ben_phone_number')->nullable();
$table->string('mem_id')->nullable();
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
//
}
};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment