Skip to content

Commit

Permalink
Added postgres table and enum comment test data
Browse files Browse the repository at this point in the history
  • Loading branch information
VolkerLieber committed Sep 25, 2024
1 parent 915bdc1 commit 0e337a3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions init/postgres/test_sample.sql
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,16 @@ CREATE TABLE IF NOT EXISTS test_sample.link (
description VARCHAR (255)
);

COMMENT ON TABLE test_sample.link IS 'Link table';

COMMENT ON COLUMN test_sample.link.id IS 'this is link id';

COMMENT ON COLUMN test_sample.link.url IS 'link url';

COMMENT ON COLUMN test_sample.link.name IS 'Unicode characters comment ₲鬼佬℧⇄↻';

COMMENT ON COLUMN test_sample.link.description IS E'''\"\b\n\r\t\Z\\\%\_';

INSERT INTO test_sample.link (id, url, name, description) VALUES
(0, 'http://www.youtube.com', 'Youtube' , ''),
(1, 'www.gmail.com', 'Gmail', 'Email service developed by Google'),
Expand Down Expand Up @@ -326,6 +336,8 @@ REFRESH MATERIALIZED VIEW test_sample.all_types_materialized_view;
-- Level enum
CREATE TYPE test_sample.Level AS ENUM ('1', '2', '3', '4', '5');

COMMENT ON TYPE test_sample.Level IS 'Level enum';

-- Reserved words for table and column names
CREATE TABLE test_sample."User"(
id bigserial PRIMARY KEY,
Expand Down

0 comments on commit 0e337a3

Please sign in to comment.