Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: allow esp to know who they are #106

Merged
merged 2 commits into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions database/migration/deploy/2024-07-10.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Deploy climat-guardian:2024-07-10 to pg

BEGIN;

grant select on table api.esp to esp32;

COMMIT;
7 changes: 7 additions & 0 deletions database/migration/revert/2024-07-10.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Revert climat-guardian:2024-07-10 from pg

BEGIN;

revoke select on table api.esp from esp32;

COMMIT;
1 change: 1 addition & 0 deletions database/migration/sqitch.plan
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ data 2024-06-07T20:09:18Z Nils <nils@fedora> # Add table to store data
user 2024-06-07T20:47:39Z Nils <nils@fedora> # create a user table to store every user and password
esp 2024-06-26T08:20:01Z dylan <dylanbossoku@dylan> # create a esp table to stove every esp data
2024-07-05 2024-07-05T08:58:10Z Nils <nils@fedora> # Grant user the ability to remove users
2024-07-10 2024-07-10T08:08:27Z Nils <nils@fedora> # Give the esp permission to know it's id
7 changes: 7 additions & 0 deletions database/migration/verify/2024-07-10.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
-- Verify climat-guardian:2024-07-10 on pg

BEGIN;

-- XXX Add verifications here.

ROLLBACK;