Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: rewrite login type migrations#16978

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
SasSwart merged 2 commits intomainfromjjs/fix-migrations
Mar 18, 2025
Merged
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
reword migration comment
  • Loading branch information
@SasSwart
SasSwart committedMar 18, 2025
commit1d347179668dc9753a4b49fb7bf48e57ad432c24
9 changes: 3 additions & 6 deletionscoderd/database/migrations/000126_login_type_none.up.sql
View file
Open in desktop
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
-- This migration has been modified after its initial commit.
-- The original disregarded the warning in create_migration.sh.
-- As a result, it was not possible to insert a user with the "none" login type
-- in a migration.
-- The new implementation makes the same changes as the original, but
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: this comment should rather just going into the PR description, and the original argument should be copied over as well. Linking to a GH commit might not always work, or be difficult to find once the comment is resolved.

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

I'm going to keep a trimmed version of the comment in the migration if its all the same, but I will update the PR description with some more detail.

dannykopping reacted with thumbs up emoji
Copy link
Contributor

Choose a reason for hiding this comment

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

Sounds good; for consistency should it not go in both files then?

--adhered tothewarning in create_migration.sh to allow the insertion of
-- a user with the "none" login type. This was necessary for prebuilds.
-- For more information, see: https://github.com/coder/coder/pull/16916#discussion_r1998758887
--takes into accountthemessage in create_migration.sh. This is done
--to allow the insertion ofa user with the "none" login type in later migrations.

CREATE TYPE new_logintype AS ENUM (
'password',
'github',
Expand Down
Loading

[8]ページ先頭

©2009-2026 Movatter.jp