Closed koji-m closed 1 week ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
giselle | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Nov 1, 2024 2:56am |
Thank you!
FYI: @koji-m @toyamarinyon I executed the following command!
bun drizzle-kit migrate
Thank you 🙏
Summary
ref. https://github.com/route06inc/giselle/issues/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.