Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
" ($1, $2, $3, $4, $5, $6, $7, $8)">>}.
{update_organization_by_id,
<<"UPDATE orgs SET last_updated_by= $1, updated_at= $2, name= $3, full_name= $4"
"WHERE id= $5">>}.
" WHERE id= $5">>}.
{delete_organization_by_id, <<"DELETE FROM orgs WHERE id= $1">>}.
{find_organization_by_id,
<<"SELECT id, authz_id, name, full_name, assigned_at, last_updated_by, created_at, updated_at"
Expand All @@ -95,7 +95,7 @@
" ($1, $2, $3, $4, $5, $6, $7)">>}.
{update_container_by_id,
<<"UPDATE containers SET last_updated_by= $1, updated_at= $2, name= $3"
"WHERE id= $4">>}.
" WHERE id= $4">>}.
{delete_container_by_id, <<"DELETE FROM containers WHERE id= $1">>}.
{list_containers_for_org, <<"SELECT name FROM containers WHERE org_id= $1">>}.
{list_groups_for_org, <<"SELECT name FROM groups WHERE org_id= $1">>}.
Expand All @@ -109,7 +109,7 @@
" ($1, $2, $3, $4, $5, $6, $7)">>}.
{update_group_by_id,
<<"UPDATE groups SET last_updated_by= $1, updated_at= $2, name= $3"
"WHERE id= $4">>}.
" WHERE id= $4">>}.
{delete_group_by_id, <<"DELETE FROM groups WHERE id= $1">>}.

{list_policies_for_org, <<"SELECT name FROM policies WHERE org_id= $1">>}.
Expand All @@ -123,7 +123,7 @@
" ($1, $2, $3, $4, $5)">>}.
{update_policy_by_id,
<<"UPDATE policies SET last_updated_by= $1, name = $2, policy_group=$3"
"WHERE id = $5">>}.
" WHERE id = $5">>}.
{delete_policy_by_name_org_id, <<"DELETE FROM policies WHERE name= $1 AND org_id= $2">>}.
{delete_policy_by_id, <<"DELETE FROM policies WHERE id= $1">>}.

Expand Down
Loading