Example #1
0
 public function testRunningMigrations()
 {
     static::bootKernel();
     // create user table
     Schema::create('users', function (Blueprint $table) {
         $table->increments('id');
         $table->string('name');
         $table->string('email');
         $table->string('password');
         $table->timestamps();
     });
     User::create(['name' => 'John Doe', 'email' => '*****@*****.**', 'password' => 'pa$$word']);
 }
Example #2
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::table('SomeTable', function (Blueprint $table) {
         //
     });
 }
Example #3
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::dropIfExists('SomeTable');
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::drop('users');
 }
Example #5
0
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::drop('SomeTable');
 }