-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Superusers can now update data hosting quota from the main project settings admin interface.
- Loading branch information
1 parent
1b6acc3
commit 920f430
Showing
8 changed files
with
380 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
--! Previous: sha1:6d0e0ecb4eb8cbce2e864dce288208def90f03d1 | ||
--! Hash: sha1:e3f0e93b74596af2758d245047060587ded98a81 | ||
|
||
-- Enter migration here | ||
create or replace function update_data_hosting_quota(project_id int, quota bigint) | ||
returns projects | ||
language sql | ||
security definer | ||
as $$ | ||
update projects | ||
set data_hosting_quota = quota | ||
where id = project_id | ||
returning *; | ||
$$; | ||
|
||
grant execute on function update_data_hosting_quota(int, bigint) to seasketch_superuser; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.