summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2016-10-29 00:36:54 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2016-10-29 00:36:54 +0100
commit270d696eaf3f45999b87b22bff1a014bed9a1bb0 (patch)
tree47a9f769584e00b4d4b26a9d0d5178f48f0dcb17
parentAdd all the expected methods to the user service (diff)
downloadgentoobrowse-api-270d696eaf3f45999b87b22bff1a014bed9a1bb0.tar.bz2
gentoobrowse-api-270d696eaf3f45999b87b22bff1a014bed9a1bb0.tar.xz
gentoobrowse-api-270d696eaf3f45999b87b22bff1a014bed9a1bb0.zip
Don't screw with sequence settings just for tests
-rw-r--r--gentoobrowse-api/db/schema.sql2
-rw-r--r--gentoobrowse-api/unittests/data.sql4
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;
+