From ef722fe0d8f0e6c3480386beb2b575f7c63fd0fd Mon Sep 17 00:00:00 2001 From: Alexander Ng Date: Tue, 10 Dec 2024 14:47:48 -0800 Subject: [PATCH] add official exercises to the database --- migrations/20241210224609_official_exercises.sql | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 migrations/20241210224609_official_exercises.sql diff --git a/migrations/20241210224609_official_exercises.sql b/migrations/20241210224609_official_exercises.sql new file mode 100644 index 0000000..581f3bc --- /dev/null +++ b/migrations/20241210224609_official_exercises.sql @@ -0,0 +1,7 @@ +-- Add migration script here + +ALTER TABLE exercises +ADD COLUMN official BOOLEAN NOT NULL DEFAULT FALSE, +ADD COLUMN author_id UUID REFERENCES users(id), +ADD COLUMN description TEXT, +ADD COLUMN created_at TIMESTAMP NOT NULL DEFAULT NOW();