-
-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Database Hosts to have multiple Nodes #724
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MySql/Mariadb needs explicit type
public function up(): void | ||
{ | ||
Schema::create('database_host_node', function (Blueprint $table) { | ||
$table->id(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$table->id(); | |
$table->id(); | |
$table->unsignedInteger('node_id'); |
public function down(): void | ||
{ | ||
Schema::table('database_hosts', function (Blueprint $table) { | ||
$table->foreignId('node_id')->nullable()->references('id')->on('nodes'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
$table->foreignId('node_id')->nullable()->references('id')->on('nodes'); | |
$table->unsignedInteger('node_id')->nullable(); | |
$table->foreignId('node_id')->references('id')->on('nodes'); |
Closes #133