-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix #1010 #2059
fix #1010 #2059
Changes from 6 commits
7f97f2a
23104d7
5ef06ae
5e3504a
d10096a
661342f
fcd249b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
-- Feb 1, 2017 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please remove this file as I don't think it belongs to this PR. |
||
-- adding study tag system | ||
|
||
|
||
CREATE TABLE qiita.study_tags ( | ||
study_tag_id bigserial NOT NULL, | ||
study_tag varchar NOT NULL, | ||
CONSTRAINT pk_study_tag UNIQUE ( study_tag_id ), | ||
CONSTRAINT pk_study_tag_id PRIMARY KEY ( study_tag_id ) | ||
) ; | ||
|
||
CREATE INDEX idx_study_tag_id ON qiita.study_tags ( study_tag_id ) ; | ||
|
||
-- inserting tags for GOLD | ||
INSERT INTO qiita.study_tags (study_tag) VALUES ('GOLD'); |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ INSERT INTO qiita.qiita_user (email, user_level_id, password, name, | |
'$2a$12$gnUi8Qg.0tvW243v889BhOBhWLIHyIJjjgaG6dxuRJkUM8nXG9Efe', 'Dude', | ||
'Nowhere University', '123 fake st, Apt 0, Faketown, CO 80302', | ||
'111-222-3344'), | ||
('shared@foo.bar', 3, | ||
('shared@foo.bar', 4, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. level 3 is superuser and 4 is use, shared user should be regular user so we can actually test that sharing/etc works ... let's see which other tests will fail ... |
||
'$2a$12$gnUi8Qg.0tvW243v889BhOBhWLIHyIJjjgaG6dxuRJkUM8nXG9Efe', 'Shared', | ||
'Nowhere University', '123 fake st, Apt 0, Faketown, CO 80302', | ||
'111-222-3344'), | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
children
is only checking at the immediate children but not to the entire descendants.