diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-10-29 00:36:54 +0100 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2016-10-29 00:36:54 +0100 |
commit | 608c88d5ce35cb30fcf582e79a814b2db2c3ff72 (patch) | |
tree | 47a9f769584e00b4d4b26a9d0d5178f48f0dcb17 | |
parent | Add all the expected methods to the user service (diff) | |
download | gentoobrowse-api-608c88d5ce35cb30fcf582e79a814b2db2c3ff72.tar.bz2 gentoobrowse-api-608c88d5ce35cb30fcf582e79a814b2db2c3ff72.tar.xz gentoobrowse-api-608c88d5ce35cb30fcf582e79a814b2db2c3ff72.zip |
Don't screw with sequence settings just for tests
-rw-r--r-- | gentoobrowse-api/db/schema.sql | 2 | ||||
-rw-r--r-- | gentoobrowse-api/unittests/data.sql | 4 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gentoobrowse-api/db/schema.sql b/gentoobrowse-api/db/schema.sql index d5d7678..6d89a05 100644 --- a/gentoobrowse-api/db/schema.sql +++ b/gentoobrowse-api/db/schema.sql @@ -604,7 +604,7 @@ ALTER TABLE users OWNER TO gentoo; COMMENT ON TABLE users IS 'Registered users'; -- Name: users_userid_seq; Type: SEQUENCE; Schema: gentoobrowse; Owner: gentoo CREATE SEQUENCE users_userid_seq - START WITH 3 + START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE diff --git a/gentoobrowse-api/unittests/data.sql b/gentoobrowse-api/unittests/data.sql index e7746a9..cb63bc4 100644 --- a/gentoobrowse-api/unittests/data.sql +++ b/gentoobrowse-api/unittests/data.sql @@ -30,3 +30,7 @@ COPY gentoobrowse.users (userid, username, userrealname, userpassword, useremail COPY gentoobrowse.user_ebuild_emails (userid, ebuildid, sentat) FROM '$SCRIPTDIR/fixtures/user_ebuild_emails.dat'; COPY gentoobrowse.user_packages (userid, packageid, trackedsince) FROM '$SCRIPTDIR/fixtures/user_packages.dat'; COPY gentoobrowse.changelog (changeid, repoid, commitid, committime, authorname, authoremail, summary, body, files) FROM '$SCRIPTDIR/fixtures/changelog.dat'; + +ALTER SEQUENCE users_userid_seq + RESTART WITH 3; + |