8000 CLI admin command should not run migrations · Issue #15976 · coder/coder · GitHub
[go: up one dir, main page]

Skip to content
8000
CLI admin command should not run migrations #15976
Closed
@Emyrk

Description

@Emyrk

CLI admin command create-admin-user runs migrations when opening a database. This caused an issue for a customer when the cli was on a more recent release than their running servers. This caused the database to be on v2.18, while their coderd was on v2.17.0. And coderd was unable to boot.

Admin cli commands should not run migrations, and we should have a migrate command to do it explicitly.

func (r *RootCmd) newCreateAdminUserCommand() *serpent.Command {

Metadata

Metadata

Assignees

Labels

s1Bugs that break core workflows. Only humans may set this.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0