Skip to content

Add Auto Migration Default#64

Merged
steeevin88 merged 7 commits intomainfrom
khoa/auto-migrate
Apr 26, 2026
Merged

Add Auto Migration Default#64
steeevin88 merged 7 commits intomainfrom
khoa/auto-migrate

Conversation

@KhoaNguyen706
Copy link
Copy Markdown
Collaborator

@KhoaNguyen706 KhoaNguyen706 commented Apr 17, 2026

Add auto migration

closes 62

Copy link
Copy Markdown
Contributor

@steeevin88 steeevin88 left a comment

Choose a reason for hiding this comment

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

awesome stuff! besides the comments, a few more points:

  1. can you change the last sentence in your PR description? it should be "closes", not "closed". closed implies that we close the issue before merging this PR. closes implies that we WILL close the issue after merging this PR
  2. did you test this locally? i know it's a bit weird to test but since you already had data that wasn't up-to-date i'm guessing you ran the script on it and it worked? just want to confirm quickly

Comment thread pkg/database/migrate.go
Comment thread pkg/models/event.go
Comment thread cmd/migrate/main.go Outdated
Comment thread pkg/database/migrate.go Outdated
Comment thread pkg/database/migrate.go Outdated
Copy link
Copy Markdown
Contributor

@steeevin88 steeevin88 left a comment

Choose a reason for hiding this comment

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

cool, and again was this tested? just wanna make sure

Comment thread cmd/README.md Outdated
Comment thread cmd/README.md Outdated
@steeevin88
Copy link
Copy Markdown
Contributor

  1. main got a new commit, can you rebase?
  2. can you also capitalize your PR title

Comment thread pkg/models/event.go Outdated
Comment thread cmd/migrate/main.go Outdated
Comment thread cmd/README.md Outdated
Comment thread cmd/migrate/main.go Outdated
@steeevin88
Copy link
Copy Markdown
Contributor

steeevin88 commented Apr 19, 2026

also remember to update the PR title lol let's capitalize "Add"

@KhoaNguyen706 KhoaNguyen706 changed the title add Auto Migration Default Add Auto Migration Default Apr 19, 2026
Copy link
Copy Markdown
Contributor

@steeevin88 steeevin88 left a comment

Choose a reason for hiding this comment

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

i think this looks fine, if it gets used we can debug in the future

- Parse slice defaults via encoding/json (supports [] and non-empty arrays)
- Move migrate usage to cmd/README.md (Purpose / Usage)
- Remove verbose comments from migrate.go and cmd/migrate/main.go
- Document empty Admins + #65 on Event struct

Made-with: Cursor
@steeevin88 steeevin88 enabled auto-merge (squash) April 26, 2026 04:33
@steeevin88 steeevin88 merged commit 15c4841 into main Apr 26, 2026
2 checks passed
@steeevin88 steeevin88 deleted the khoa/auto-migrate branch April 26, 2026 04:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create script to update all MongoDB entries when structs change

2 participants