-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide a sequence for "permission_target"
It is an improvement to have generated primary keys. Idea by Srikanth Medikonda.
- Loading branch information
Showing
7 changed files
with
526 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
results | ||
regression.* |
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,10 @@ | ||
-- complain if script is sourced in psql, rather than via CREATE EXTENSION | ||
\echo Use "ALTER EXTENSION pg_permissions UPDATE" to load this file. \quit | ||
|
||
CREATE SEQUENCE permission_target_id_seq OWNED BY permission_target.id; | ||
ALTER TABLE permission_target ALTER id | ||
SET DEFAULT nextval('permission_target_id_seq'::regclass); | ||
|
||
GRANT USAGE ON SEQUENCE permission_target_id_seq TO PUBLIC; | ||
|
||
SELECT pg_catalog.pg_extension_config_dump('permission_target_id_seq', ''); |
Oops, something went wrong.