Skip to content

Commit ba6baa3

Browse files
committed
clean up pgsql
1 parent 5000de6 commit ba6baa3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/Sql/PostgreSQL/Functions/user_create.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,4 +100,4 @@ BEGIN
100100
_revision_date
101101
);
102102
END
103-
$$
103+
$$

src/Sql/PostgreSQL/Functions/user_read_by_id.sql

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CREATE OR REPLACE FUNCTION user_read_by_id
44
(
55
_id uuid
66
)
7-
RETURNS SETOF "user"
7+
RETURNS SETOF user_view
88
LANGUAGE 'plpgsql'
99
AS
1010
$BODY$
@@ -13,8 +13,8 @@ BEGIN
1313
SELECT
1414
*
1515
FROM
16-
"user"
16+
user_view
1717
WHERE
18-
"id" = _id;
18+
id = _id;
1919
END
2020
$BODY$;

src/Sql/PostgreSQL/Tables/cipher.sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ CREATE TABLE IF NOT EXISTS cipher (
1111
attachments TEXT NULL,
1212
creation_date TIMESTAMPTZ NOT NULL,
1313
revision_date TIMESTAMPTZ NOT NULL,
14-
CONSTRAINT pk_cipher PRIMARY KEY (Id),
14+
CONSTRAINT pk_cipher PRIMARY KEY (id),
1515
CONSTRAINT fk_cipher_organization FOREIGN KEY (organization_id) REFERENCES Organization (id),
1616
CONSTRAINT fk_cipher_user FOREIGN KEY (user_id) REFERENCES "user" (id)
1717
);

0 commit comments

Comments
 (0)