-
Notifications
You must be signed in to change notification settings - Fork 36
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 #124 from sjhewitt/sjh-postgres-views
ignore views/foreign tables/temporary tables in postgres databases
- Loading branch information
Showing
2 changed files
with
6 additions
and
1 deletion.
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 |
---|---|---|
|
@@ -25,6 +25,9 @@ CREATE TABLE "order_items" ( | |
FOREIGN KEY (order_id) REFERENCES orders(id) | ||
); | ||
|
||
|
||
CREATE VIEW "users_view" AS SELECT id, username FROM "users" WHERE active=true; | ||
|
||
INSERT INTO "users" VALUES ('0d60a85e-0b90-4482-a14c-108aea2557aa', 'wbo', '[email protected]', true, 'm', '2017-01-01'); | ||
INSERT INTO "users" VALUES ('39240e9f-ae09-4e95-9fd0-a712035c8ad7', 'kp', '[email protected]', true, NULL, '2017-01-01'); | ||
INSERT INTO "users" VALUES ('9e4de779-d6a0-44bc-a531-20cdb97178d2', 'lp', '[email protected]', false, 'f', '2017-01-01'); | ||
|
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