Skip to content

Commit 99ba914

Browse files
authored
Added created_at & updated_at columns to key_value (#433)
ref https://linear.app/ghost/issue/AP-871 Added timestamps to our entries in the key_value table is going to help us understand exactly _when_ we recieve an incoming activity. This can go a long way in allowing us to correlate data and investigate bugs.
1 parent cf7b0f6 commit 99ba914

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ALTER TABLE `key_value`
2+
DROP COLUMN `created_at`,
3+
DROP COLUMN `updated_at`;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
ALTER TABLE `key_value`
2+
ADD COLUMN `created_at` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP,
3+
ADD COLUMN `updated_at` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP;

0 commit comments

Comments
 (0)