@pgpm/database-jobs 0.26.2 → 0.26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Makefile +1 -1
- package/deploy/schemas/app_jobs/procedures/grants/grant_execute_add_job_to_authenticated.sql +10 -0
- package/deploy/schemas/app_jobs/schema.sql +1 -0
- package/package.json +2 -2
- package/pgpm-database-jobs.control +1 -1
- package/pgpm.plan +1 -0
- package/revert/schemas/app_jobs/procedures/grants/grant_execute_add_job_to_authenticated.sql +7 -0
- package/sql/{pgpm-database-jobs--0.26.1.sql → pgpm-database-jobs--0.26.2.sql} +4 -0
- package/verify/schemas/app_jobs/procedures/grants/grant_execute_add_job_to_authenticated.sql +7 -0
package/Makefile
CHANGED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
-- Deploy schemas/app_jobs/procedures/grants/grant_execute_add_job_to_authenticated to pg
|
|
2
|
+
|
|
3
|
+
-- requires: schemas/app_jobs/schema
|
|
4
|
+
-- requires: schemas/app_jobs/procedures/add_job
|
|
5
|
+
|
|
6
|
+
BEGIN;
|
|
7
|
+
|
|
8
|
+
GRANT EXECUTE ON FUNCTION app_jobs.add_job(text, json, text, text, timestamptz, integer, integer, uuid, uuid, text) TO authenticated;
|
|
9
|
+
|
|
10
|
+
COMMIT;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pgpm/database-jobs",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.3",
|
|
4
4
|
"description": "Database-specific job handling and queue management",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"contributors": [
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
"bugs": {
|
|
36
36
|
"url": "https://github.com/constructive-io/pgpm-modules/issues"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "fc269eb5f9521c96a0a618cdbcc99c451830d002"
|
|
39
39
|
}
|
package/pgpm.plan
CHANGED
|
@@ -36,5 +36,6 @@ schemas/app_jobs/procedures/complete_jobs [schemas/app_jobs/schema schemas/app_j
|
|
|
36
36
|
schemas/app_jobs/procedures/complete_job [schemas/app_jobs/schema schemas/app_jobs/tables/jobs/table schemas/app_jobs/tables/job_queues/table] 2025-08-26T23:57:41Z pgpm <pgpm@5b0c196eeb62> # add schemas/app_jobs/procedures/complete_job
|
|
37
37
|
schemas/app_jobs/procedures/add_scheduled_job [schemas/app_jobs/schema schemas/app_jobs/tables/scheduled_jobs/table pgpm-jwt-claims:schemas/jwt_private/procedures/current_database_id] 2025-08-26T23:57:41Z pgpm <pgpm@5b0c196eeb62> # add schemas/app_jobs/procedures/add_scheduled_job
|
|
38
38
|
schemas/app_jobs/procedures/add_job [schemas/app_jobs/schema schemas/app_jobs/tables/jobs/table schemas/app_jobs/tables/job_queues/table pgpm-jwt-claims:schemas/jwt_private/procedures/current_database_id pgpm-jwt-claims:schemas/jwt_public/procedures/current_user_id] 2025-08-26T23:57:41Z pgpm <pgpm@5b0c196eeb62> # add schemas/app_jobs/procedures/add_job
|
|
39
|
+
schemas/app_jobs/procedures/grants/grant_execute_add_job_to_authenticated [schemas/app_jobs/schema schemas/app_jobs/procedures/add_job] 2026-06-03T01:15:00Z pgpm <pgpm@localhost> # grant authenticated EXECUTE on add_job for INVOKER trigger support
|
|
39
40
|
schemas/app_jobs/procedures/remove_job [schemas/app_jobs/schema schemas/app_jobs/tables/jobs/table] 2025-08-26T23:57:41Z pgpm <pgpm@5b0c196eeb62> # add schemas/app_jobs/procedures/remove_job
|
|
40
41
|
schemas/app_jobs/procedures/force_unlock_workers [schemas/app_jobs/schema schemas/app_jobs/tables/jobs/table schemas/app_jobs/tables/job_queues/table] 2025-08-26T23:57:41Z pgpm <pgpm@5b0c196eeb62> # add schemas/app_jobs/procedures/force_unlock_workers
|
|
@@ -3,6 +3,8 @@ CREATE SCHEMA IF NOT EXISTS app_jobs;
|
|
|
3
3
|
|
|
4
4
|
GRANT USAGE ON SCHEMA app_jobs TO administrator;
|
|
5
5
|
|
|
6
|
+
GRANT USAGE ON SCHEMA app_jobs TO authenticated;
|
|
7
|
+
|
|
6
8
|
ALTER DEFAULT PRIVILEGES IN SCHEMA app_jobs
|
|
7
9
|
GRANT EXECUTE ON FUNCTIONS TO administrator;
|
|
8
10
|
|
|
@@ -876,6 +878,8 @@ BEGIN
|
|
|
876
878
|
END;
|
|
877
879
|
$EOFCODE$ LANGUAGE plpgsql VOLATILE SECURITY DEFINER;
|
|
878
880
|
|
|
881
|
+
GRANT EXECUTE ON FUNCTION app_jobs.add_job(text, pg_catalog.json, text, text, timestamptz, int, int, uuid, uuid, text) TO authenticated;
|
|
882
|
+
|
|
879
883
|
CREATE FUNCTION app_jobs.remove_job(job_key text) RETURNS app_jobs.jobs LANGUAGE plpgsql STRICT AS $EOFCODE$
|
|
880
884
|
DECLARE
|
|
881
885
|
v_job app_jobs.jobs;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
-- Verify schemas/app_jobs/procedures/grants/grant_execute_add_job_to_authenticated on pg
|
|
2
|
+
|
|
3
|
+
BEGIN;
|
|
4
|
+
|
|
5
|
+
SELECT has_function_privilege('authenticated', 'app_jobs.add_job(text, json, text, text, timestamptz, integer, integer, uuid, uuid, text)', 'EXECUTE');
|
|
6
|
+
|
|
7
|
+
ROLLBACK;
|