/**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::connection(DatabaseConnection::systemConnectionName())->table('ssl_hostnames', function (Blueprint $table) {
         // domain relation
         $table->bigInteger('hostname_id')->unsigned();
     });
 }
Esempio n. 2
0
 public function getConnectionName()
 {
     return DatabaseConnection::tenantConnectionName();
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::connection(DatabaseConnection::systemConnectionName())->dropIfExists('ssl_hostnames');
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::connection(DatabaseConnection::systemConnectionName())->dropIfExists('tenants');
 }
 /**
  * Reverse the migrations.
  *
  * @return void
  */
 public function down()
 {
     Schema::connection(DatabaseConnection::systemConnectionName())->dropIfExists('ssl_lets_encrypt_requests');
 }
Esempio n. 6
0
 public function getConnectionName()
 {
     return DatabaseConnection::systemConnectionName();
 }
Esempio n. 7
0
 protected function runMigrations()
 {
     foreach (config('hyn.packages', []) as $name => $package) {
         if (class_exists(array_get($package, 'service-provider'))) {
             $this->call('vendor:publish', ['--provider' => array_get($package, 'service-provider'), '-n']);
         }
     }
     $this->call('migrate', ['--database' => DatabaseConnection::systemConnectionName(), '-n']);
 }