Skip to content

Allow Database Hosts to have multiple Nodes#724

Closed
alexevladgabriel wants to merge 12 commits intopelican-dev:mainfrom
vehikl:issue-133
Closed

Allow Database Hosts to have multiple Nodes#724
alexevladgabriel wants to merge 12 commits intopelican-dev:mainfrom
vehikl:issue-133

Conversation

@alexevladgabriel
Copy link
Copy Markdown
Member

Closes #133

Copy link
Copy Markdown
Member

@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
Copy Markdown
Member

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
Copy Markdown
Member

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
Copy Markdown
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