From 086feff1cb8edad72670317d073352ccbccbf348 Mon Sep 17 00:00:00 2001 From: JMARyA Date: Sun, 15 Dec 2024 20:29:55 +0100 Subject: [PATCH] add date_added --- migrations/0002_add_date_added_videos.sql | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 migrations/0002_add_date_added_videos.sql diff --git a/migrations/0002_add_date_added_videos.sql b/migrations/0002_add_date_added_videos.sql new file mode 100644 index 0000000..467ac71 --- /dev/null +++ b/migrations/0002_add_date_added_videos.sql @@ -0,0 +1,2 @@ +ALTER TABLE videos +ADD COLUMN date_added TIMESTAMPTZ DEFAULT CURRENT_TIMESTAMP;