-
Notifications
You must be signed in to change notification settings - Fork 6
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add updated at column #66
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
… into add-updated-at-column
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I will check it out! I think it's generally good, but I did comment on one point, so please check it out.
docs/packages-license.md
Outdated
@@ -1,6 +1,6 @@ | |||
# giselle | |||
|
|||
As of October 29, 2024 10:23am. 926 total | |||
As of October 31, 2024 8:07am. 926 total |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this change is unnecessary.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There were no changes to the dependencies, but since bun.lockb was included in the early commit, that file was automatically updated. I reverted it because it is unnecessary. thank you. cb4dad8
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
This reverts commit 8d2b586.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Thank you! |
FYI: @koji-m @toyamarinyon bun drizzle-kit migrate |
Thank you 🙏 |
Summary
ref. #50
In this PR, I will add columns that represent the update datetime (timestamp) of records to several tables in the DB.
Currently, add a column that records record update timestamps only to tables that have record creation timestamps.
(Exclude the
files
andrequests
tables as they are not used.)Related Issue
Changes
updatedAt
column to the tables below. (drizzle/schema.ts)Testing
agents
andupdated_at
==created_at
is set.updated_at
of the modified agent's record has been updated.organizations
andteams
andupdated_at
==created_at
is set.Other Information
defaultNow()
is specified, so the initial value ofupdate_at
for records that already exist are set to the current timestamp. So that, it does not accurately reflect the actual last update time. The alternatives considered are:created_at
updated_at
value to thecreated_at
value.created_at
after changing the schema.