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: Add default created_by in templates and not null constraint#2290

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

Conversation

AbhineetJain
Copy link
Contributor

@AbhineetJainAbhineetJain commentedJun 13, 2022
edited
Loading

This PR populates thecreated_by field wherevernull with the first-created user in the organization and adds a non-nullable constraint.

Subtasks

  • create migration with populating the default value and adding the not null constraint
  • update usages ofNullUUID toUUID
  • remove default<unknown> behavior in frontend for unknown creators.

Fixes#2283

@AbhineetJainAbhineetJain requested a review froma team as acode ownerJune 13, 2022 17:08
@AbhineetJainAbhineetJain requested a review froma teamJune 13, 2022 17:09
Copy link
Collaborator

@BrunoQuaresmaBrunoQuaresma left a comment

Choose a reason for hiding this comment

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

LGTM.

@Emyrk
Copy link
Member

❤️ I wanted this

Copy link
Member

@EmyrkEmyrk left a comment

Choose a reason for hiding this comment

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

No more nulls! 👍

@AbhineetJainAbhineetJainforce-pushed theabhineetjain/not-null-template-created-by branch from4ff9669 tof8668bcCompareJune 13, 2022 17:14
@AbhineetJainAbhineetJainenabled auto-merge (squash)June 13, 2022 17:17
@AbhineetJainAbhineetJain merged commita91482c intomainJun 13, 2022
@AbhineetJainAbhineetJain deleted the abhineetjain/not-null-template-created-by branchJune 13, 2022 17:25
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@mafredrimafredrimafredri approved these changes

@BrunoQuaresmaBrunoQuaresmaBrunoQuaresma approved these changes

@EmyrkEmyrkEmyrk approved these changes

@deansheatherdeansheatherdeansheather approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Makecreated_by field in templates table not null
5 participants
@AbhineetJain@Emyrk@mafredri@BrunoQuaresma@deansheather

[8]ページ先頭

©2009-2025 Movatter.jp