Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class CreateProfileTable extends Migration
- {
- /**
- * Run the migrations.
- *
- * @return void
- */
- public function up()
- {
- Schema::create('profile', function (Blueprint $table) {
- $table->id();
- $table->bigInteger('id_user');
- $table->string('fullname');
- $table->string('email')->unique();
- $table->string('phone')->unique();
- $table->timestamps();
- });
- }
- /**
- * Reverse the migrations.
- *
- * @return void
- */
- public function down()
- {
- Schema::dropIfExists('profile');
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement