up() публичный Метод

Run the migrations.
public up ( ) : void
Результат void
Пример #1
0
 /**
  * Run the migrations
  */
 public function up()
 {
     $this->createShipsTable->up();
     $this->createTypesTable->up();
     $this->createCompaniesTable->up();
     $this->createUsersTable->up();
     $this->addTypeToVesselTable->up();
     $this->addCompanyToVesselTable->up();
     $this->addUserToCompanyTable->up();
     echo "Migration process completed.\n\n";
 }
Пример #2
0
 function tablolariOlustur()
 {
     $tabloolustur = new \CreateUsersTable();
     $tabloolustur->up();
     $resettablo = new \CreatePasswordResetsTable();
     $resettablo->up();
     return \Redirect::to('auth/register');
 }
Пример #3
0
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     // DB::table('users')->delete(); // only deletes all records from table. that's a problem because the auto incrementing id will not reset to 1.
     // Calling appropriate migration directly
     $ut = new CreateUsersTable();
     $ut->down();
     $ut->up();
     User::create(array('fname' => 'Riddhi', 'lname' => 'Mittal', 'mobile' => 9873574130, 'password' => Hash::make('9873574130'), 'age' => 34, 'email' => '*****@*****.**'));
 }