/** * 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(); }); }
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'); }
public function getConnectionName() { return DatabaseConnection::systemConnectionName(); }
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']); }