php-cs-fixer and phpstan
This commit is contained in:
parent
363c4fd49f
commit
7ed2be50fd
25 changed files with 102 additions and 109 deletions
|
@ -17,7 +17,7 @@ return new class () extends Migration {
|
|||
|
||||
Schema::table('nodes', function (Blueprint $table) {
|
||||
$table->integer('database_host_id')->nullable()->unsigned()->after('location_id');
|
||||
$table->index('database_host_id')->nullable();
|
||||
$table->index('database_host_id');
|
||||
$table->foreign('database_host_id')->references('id')->on('database_hosts')->onDelete('set null');
|
||||
});
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ return new class () extends Migration {
|
|||
|
||||
Schema::table('database_hosts', function (Blueprint $table) {
|
||||
$table->integer('node_id')->nullable()->unsigned()->after('max_databases');
|
||||
$table->index('node_id')->nullable();
|
||||
$table->index('node_id');
|
||||
$table->foreign('node_id')->references('id')->on('nodes');
|
||||
});
|
||||
}
|
||||
|
|
|
@ -19,10 +19,10 @@ return new class () extends Migration {
|
|||
|
||||
Schema::table('nodes', function (Blueprint $table) {
|
||||
$table->integer('listen_port_http')->unsigned()->default(8080)->after('fqdn')->change();
|
||||
$table->integer('listen_port_sftp')->unsigned()->default(2022)->after('listen_port_sftp')->change();
|
||||
$table->integer('listen_port_sftp')->unsigned()->default(2022)->after('listen_port_http')->change();
|
||||
|
||||
$table->integer('public_port_http')->unsigned()->default(8080)->after('listen_port_http');
|
||||
$table->integer('public_port_sftp')->unsigned()->default(2022)->after('listen_port_sftp');
|
||||
$table->integer('public_port_http')->unsigned()->default(8080)->after('listen_port_sftp');
|
||||
$table->integer('public_port_sftp')->unsigned()->default(2022)->after('public_port_http');
|
||||
});
|
||||
|
||||
DB::transaction(function () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue