-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from k1LoW/fix-multiline-comments
Support multi-line comment
- Loading branch information
Showing
14 changed files
with
51 additions
and
33 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
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
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
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
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
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 |
---|---|---|
|
@@ -24,8 +24,8 @@ CREATE TABLE users ( | |
created timestamp NOT NULL, | ||
updated timestamp | ||
); | ||
COMMENT ON TABLE users is 'Users table'; | ||
COMMENT ON COLUMN users.email is 'ex. [email protected]'; | ||
COMMENT ON TABLE users IS 'Users table'; | ||
COMMENT ON COLUMN users.email IS 'ex. [email protected]'; | ||
|
||
CREATE TABLE posts ( | ||
id bigserial NOT NULL, | ||
|
@@ -40,8 +40,8 @@ CREATE TABLE posts ( | |
CONSTRAINT posts_user_id_fk FOREIGN KEY(user_id) REFERENCES users(id) MATCH SIMPLE ON UPDATE NO ACTION ON DELETE CASCADE, | ||
UNIQUE(user_id, title) | ||
); | ||
COMMENT ON TABLE posts is 'Posts table'; | ||
COMMENT ON COLUMN posts.post_type is 'public/private/draft'; | ||
COMMENT ON TABLE posts IS 'Posts table'; | ||
COMMENT ON COLUMN posts.post_type IS 'public/private/draft'; | ||
|
||
CREATE INDEX posts_user_id_idx ON posts USING btree(user_id); | ||
|
||
|
@@ -57,6 +57,9 @@ CREATE TABLE comments ( | |
CONSTRAINT comments_user_id_fk FOREIGN KEY(user_id) REFERENCES users(id) MATCH SIMPLE, | ||
UNIQUE(post_id, user_id) | ||
); | ||
COMMENT ON TABLE comments IS E'Comments\nMulti-line table comment'; | ||
COMMENT ON COLUMN comments.comment IS E'Comment\nMulti-line column comment'; | ||
|
||
CREATE INDEX comments_post_id_user_id_idx ON comments USING btree(post_id, user_id); | ||
|
||
CREATE TABLE comment_stars ( | ||
|