Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KranjQ committed Dec 20, 2024
1 parent 7b02e16 commit 0e6800b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions build/sql/db/migration/000004_add_award.up.sql
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ CREATE TABLE IF NOT EXISTS user_activity (
ON UPDATE CASCADE
);

INSERT INTO user_activity (user_id, last_login, consecutive_days)
SELECT id, NOW(), 0 FROM users;

GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE award TO app_user;
GRANT SELECT, INSERT, UPDATE, DELETE ON TABLE user_activity TO app_user;
GRANT USAGE, SELECT ON SEQUENCE award_id_seq TO app_user;
Expand Down

0 comments on commit 0e6800b

Please sign in to comment.