Skip to content
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

Closed
wants to merge 12 commits into from

Conversation

alexevladgabriel
Copy link
Member

Closes #133

Copy link
Contributor

@RMartinOscar RMartinOscar left a 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();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$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');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
$table->foreignId('node_id')->nullable()->references('id')->on('nodes');
$table->unsignedInteger('node_id')->nullable();
$table->foreignId('node_id')->references('id')->on('nodes');

@RMartinOscar RMartinOscar changed the title Support multiple nodes on database hosts Allow Database Hosts to have multiple Nodes Nov 22, 2024
@notAreYouScared
Copy link
Member

Closed in favor of #767

@github-actions github-actions bot locked and limited conversation to collaborators Dec 5, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make DatabaseHosts available to multiple (many) Nodes
4 participants