diff --git a/.env.example b/.env.example new file mode 100644 index 0000000000000000000000000000000000000000..0429f70ad5775494cb04e215c36325d511331120 --- /dev/null +++ b/.env.example @@ -0,0 +1,15 @@ +USE_SANDBOXED_ORCID=true +ORCID_CLIENT_ID=YOUR_ORCID_CLIENT_ID # see https://gitlab.coko.foundation/kotahi/kotahi/-/blob/main/FAQ.md#how-do-i-setup-orcid-for-development +ORCID_CLIENT_SECRET=YOUR_ORCID_SECRET +POSTGRES_USER=kotahidev +POSTGRES_PASSWORD=kotahidev +POSTGRES_DB=kotahidev +CLIENT_PORT=4000 +CLIENT_HOST=0.0.0.0 +CLIENT_PROTOCOL=http +PUBLIC_CLIENT_HOST=0.0.0.0 +SERVER_PROTOCOL=http +SERVER_HOST=0.0.0.0 +SERVER_PORT=3000 +PUBSWEET_SECRET=kotahidev + diff --git a/.env.test b/.env.test deleted file mode 100644 index 29320322fe9951018bcec271871df884ebbf7fb9..0000000000000000000000000000000000000000 --- a/.env.test +++ /dev/null @@ -1,11 +0,0 @@ -USE_SANDBOXED_ORCID=true -ORCID_CLIENT_ID=YOUR_ORCID_CLIENT_ID -ORCID_CLIENT_SECRET=YOUR_ORCID_CLIENT_SECRET -CLIENT_PORT=4000 -CLIENT_HOST=0.0.0.0 -CLIENT_PROTOCOL=http -PUBLIC_CLIENT_HOST=0.0.0.0 -SERVER_PROTOCOL=http -SERVER_HOST=0.0.0.0 -SERVER_PORT=3000 -NODE_ENV=development diff --git a/.gitlab-ci.coko.yml b/.gitlab-ci.coko.yml index 621fc0eb3ef2c9b0795e70431958a811e366e24c..4b46b0588f31c10ade79572356427409435bf1a3 100644 --- a/.gitlab-ci.coko.yml +++ b/.gitlab-ci.coko.yml @@ -43,19 +43,18 @@ test-chrome: variables: GIT_STRATEGY: none # setup data for postgres image - POSTGRES_USER: kotahitest - POSTGRES_PASSWORD: pw + POSTGRES_USER: kotahidev + POSTGRES_PASSWORD: kotahidev # connection details for tests - PGUSER: kotahitest - PGPASSWORD: pw - NODE_ENV: test + PGUSER: kotahidev + PGPASSWORD: kotahidev services: - postgres script: - cd ${HOME} - apt-get -y install postgresql-client # this is needed for pgboss initial setup - - psql -h postgres -U kotahitest -d kotahitest -c "create extension pgcrypto;" + - psql -h postgres -U kotahidev -d kotahidev -c "create extension pgcrypto;" # specify host here else it confuses the linked postgres image - PGHOST=postgres yarn test:all:chrome @@ -66,18 +65,17 @@ test-firefox: variables: GIT_STRATEGY: none # setup data for postgres image - POSTGRES_USER: kotahitest - POSTGRES_PASSWORD: pw + POSTGRES_USER: kotahidev + POSTGRES_PASSWORD: kotahidev # connection details for tests - PGUSER: kotahitest - PGPASSWORD: pw - NODE_ENV: test + PGUSER: kotahidev + PGPASSWORD: kotahidev services: - postgres script: - cd ${HOME} - apt-get -y install postgresql-client # this is needed for pgboss initial setup - - psql -h postgres -U kotahitest -d kotahitest -c "create extension pgcrypto;" + - psql -h postgres -U kotahidev -d kotahidev -c "create extension pgcrypto;" # specify host here else it confuses the linked postgres image - PGHOST=postgres yarn test:all:firefox diff --git a/config/development.js b/config/development.js index 8d991b81ff4147f3c8375d420af6722948e7a270..a654babba890e3ae4ff15d8a252ab95b73fe0ef1 100644 --- a/config/development.js +++ b/config/development.js @@ -1,8 +1,10 @@ module.exports = { 'pubsweet-server': { db: { - database: 'simplej', - user: 'test', + database: 'kotahidev', + user: 'kotahidev', + password: 'kotahidev', + host: 'localhost', }, protocol: 'http', host: 'localhost', diff --git a/cypress/dumps/decision_completed.sql b/cypress/dumps/decision_completed.sql index 3ba8bfa8a02fbc16dc1de96696ddbd3dd15af349..ede118230d80be844a6690e8d8aa1517e0533e2b 100644 --- a/cypress/dumps/decision_completed.sql +++ b/cypress/dumps/decision_completed.sql @@ -16,13 +16,13 @@ SET client_min_messages = warning; SET row_security = off; -- --- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahitest +-- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahidev -- CREATE SCHEMA pgboss; -ALTER SCHEMA pgboss OWNER TO kotahitest; +ALTER SCHEMA pgboss OWNER TO kotahidev; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: @@ -53,7 +53,7 @@ COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions'; -- --- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahitest +-- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahidev -- CREATE TYPE pgboss.job_state AS ENUM ( @@ -67,14 +67,14 @@ CREATE TYPE pgboss.job_state AS ENUM ( ); -ALTER TYPE pgboss.job_state OWNER TO kotahitest; +ALTER TYPE pgboss.job_state OWNER TO kotahidev; SET default_tablespace = ''; SET default_with_oids = false; -- --- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.archive ( @@ -100,10 +100,10 @@ CREATE TABLE pgboss.archive ( ); -ALTER TABLE pgboss.archive OWNER TO kotahitest; +ALTER TABLE pgboss.archive OWNER TO kotahidev; -- --- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.job ( @@ -128,10 +128,10 @@ CREATE TABLE pgboss.job ( ); -ALTER TABLE pgboss.job OWNER TO kotahitest; +ALTER TABLE pgboss.job OWNER TO kotahidev; -- --- Name: schedule; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: schedule; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.schedule ( @@ -145,10 +145,10 @@ CREATE TABLE pgboss.schedule ( ); -ALTER TABLE pgboss.schedule OWNER TO kotahitest; +ALTER TABLE pgboss.schedule OWNER TO kotahidev; -- --- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.version ( @@ -158,10 +158,10 @@ CREATE TABLE pgboss.version ( ); -ALTER TABLE pgboss.version OWNER TO kotahitest; +ALTER TABLE pgboss.version OWNER TO kotahidev; -- --- Name: aliases; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: aliases; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.aliases ( @@ -174,10 +174,10 @@ CREATE TABLE public.aliases ( ); -ALTER TABLE public.aliases OWNER TO kotahitest; +ALTER TABLE public.aliases OWNER TO kotahidev; -- --- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channel_members ( @@ -189,10 +189,10 @@ CREATE TABLE public.channel_members ( ); -ALTER TABLE public.channel_members OWNER TO kotahitest; +ALTER TABLE public.channel_members OWNER TO kotahidev; -- --- Name: channels; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channels; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channels ( @@ -205,10 +205,10 @@ CREATE TABLE public.channels ( ); -ALTER TABLE public.channels OWNER TO kotahitest; +ALTER TABLE public.channels OWNER TO kotahidev; -- --- Name: entities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: entities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.entities ( @@ -217,10 +217,10 @@ CREATE TABLE public.entities ( ); -ALTER TABLE public.entities OWNER TO kotahitest; +ALTER TABLE public.entities OWNER TO kotahidev; -- --- Name: files; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: files; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.files ( @@ -240,10 +240,10 @@ CREATE TABLE public.files ( ); -ALTER TABLE public.files OWNER TO kotahitest; +ALTER TABLE public.files OWNER TO kotahidev; -- --- Name: identities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: identities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.identities ( @@ -260,10 +260,10 @@ CREATE TABLE public.identities ( ); -ALTER TABLE public.identities OWNER TO kotahitest; +ALTER TABLE public.identities OWNER TO kotahidev; -- --- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.manuscripts ( @@ -283,10 +283,10 @@ CREATE TABLE public.manuscripts ( ); -ALTER TABLE public.manuscripts OWNER TO kotahitest; +ALTER TABLE public.manuscripts OWNER TO kotahidev; -- --- Name: messages; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: messages; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.messages ( @@ -299,10 +299,10 @@ CREATE TABLE public.messages ( ); -ALTER TABLE public.messages OWNER TO kotahitest; +ALTER TABLE public.messages OWNER TO kotahidev; -- --- Name: migrations; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: migrations; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.migrations ( @@ -311,10 +311,10 @@ CREATE TABLE public.migrations ( ); -ALTER TABLE public.migrations OWNER TO kotahitest; +ALTER TABLE public.migrations OWNER TO kotahidev; -- --- Name: review_comments; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: review_comments; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.review_comments ( @@ -329,10 +329,10 @@ CREATE TABLE public.review_comments ( ); -ALTER TABLE public.review_comments OWNER TO kotahitest; +ALTER TABLE public.review_comments OWNER TO kotahidev; -- --- Name: reviews; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: reviews; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.reviews ( @@ -347,10 +347,10 @@ CREATE TABLE public.reviews ( ); -ALTER TABLE public.reviews OWNER TO kotahitest; +ALTER TABLE public.reviews OWNER TO kotahidev; -- --- Name: team_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: team_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.team_members ( @@ -364,10 +364,10 @@ CREATE TABLE public.team_members ( ); -ALTER TABLE public.team_members OWNER TO kotahitest; +ALTER TABLE public.team_members OWNER TO kotahidev; -- --- Name: teams; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: teams; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.teams ( @@ -384,10 +384,10 @@ CREATE TABLE public.teams ( ); -ALTER TABLE public.teams OWNER TO kotahitest; +ALTER TABLE public.teams OWNER TO kotahidev; -- --- Name: users; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: users; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.users ( @@ -407,16 +407,16 @@ CREATE TABLE public.users ( ); -ALTER TABLE public.users OWNER TO kotahitest; +ALTER TABLE public.users OWNER TO kotahidev; -- --- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- INSERT INTO pgboss.job (id, name, priority, data, state, retrylimit, retrycount, retrydelay, retrybackoff, startafter, startedon, singletonkey, singletonon, expirein, createdon, completedon, keepuntil, on_complete) VALUES ('876670c0-8195-11eb-815e-59df8a5d915a', '__pgboss__maintenance', 0, NULL, 'completed', 0, 0, 0, false, '2021-03-10 12:41:18.669507+01', '2021-03-10 12:41:18.675148+01', '__pgboss__maintenance', NULL, '00:15:00', '2021-03-10 12:41:18.669507+01', '2021-03-10 12:41:18.693727+01', '2021-03-10 12:49:18.669507+01', false); @@ -431,32 +431,32 @@ INSERT INTO pgboss.job (id, name, priority, data, state, retrylimit, retrycount, -- --- Data for Name: schedule; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: schedule; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- INSERT INTO pgboss.version (version, maintained_on, cron_on) VALUES (16, '2021-03-10 12:48:18.764191+01', '2021-03-10 12:58:31.357863+01'); -- --- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.channels (id, manuscript_id, created, updated, topic, type) VALUES ('fbb752f5-fb46-4ab6-9896-bcf34a384c92', '06ea851c-619c-453e-a12e-6568da11252c', '2021-03-10 12:48:02.828+01', '2021-03-10 12:48:02.828+01', 'Manuscript discussion', 'all'); @@ -464,20 +464,20 @@ INSERT INTO public.channels (id, manuscript_id, created, updated, topic, type) V -- --- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.files (id, created, updated, label, file_type, filename, url, mime_type, size, type, manuscript_id, review_comment_id) VALUES ('81ffbef0-c77e-46dc-a86c-864f7f1f336c', '2021-03-10 12:48:21.069+01', '2021-03-10 12:48:21.069+01', NULL, 'supplementary', 'test-pdf.pdf', '/static/uploads/508239154500088a36827c250d0b83b7.pdf', 'application/pdf', 142400, 'file', '06ea851c-619c-453e-a12e-6568da11252c', NULL); -- --- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.identities (id, user_id, created, updated, type, identifier, name, aff, oauth, is_default) VALUES ('d341a633-cdce-4a7f-a9ad-5afc03cd0dd1', '027afa6a-edbc-486e-bb31-71e12f8ea1c5', '2020-07-21 16:17:24.741+02', '2020-07-21 16:17:25.87+02', 'orcid', '0000-0002-0564-2016', 'Emily Clay', NULL, '{"accessToken": "079a1165-31e5-4b59-9a99-d80ff7a21ebf", "refreshToken": "ccadc737-defc-419e-823b-a9f3673848ba"}', true); @@ -490,20 +490,20 @@ INSERT INTO public.identities (id, user_id, created, updated, type, identifier, -- --- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.manuscripts (id, created, updated, parent_id, submitter_id, status, decision, authors, suggestions, meta, submission, published, type) VALUES ('06ea851c-619c-453e-a12e-6568da11252c', '2021-03-10 12:48:02.815+01', '2021-03-10 12:58:31.137+01', NULL, '027afa6a-edbc-486e-bb31-71e12f8ea1c5', 'accepted', 'accepted', NULL, NULL, '{"notes": [{"content": "", "notesType": "fundingAcknowledgement"}, {"content": "", "notesType": "specialInstructions"}], "title": "My URL submission"}', '{"irb": "yes", "name": "Emily Clay", "cover": "This is my cover letter", "links": [{"url": "https://doi.org/10.6084/m9.figshare.913521.v1"}, {"url": "https://github.com/jure/mathtype_to_mathml"}], "ethics": "This is my ethics statement", "contact": "emily@example.com", "methods": ["Functional MRI", "Optical Imaging"], "datacode": "This is my data and code availability statement", "humanMRI": "3T", "keywords": "some, keywords", "packages": ["SPM", "FSL"], "subjects": "patients", "suggested": "Erica James, Matthew Matretzky", "objectType": "software", "affiliation": "Example University, England", "otherMethods": "Erica James, Matthew Matretzky", "humanMRIother": "7T", "animal_research_approval": "yes"}', NULL, 'Manuscript'); -- --- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.migrations (id, run_at) VALUES ('1524494862-entities.sql', '2020-08-16 22:36:46.642584+02'); @@ -524,7 +524,7 @@ INSERT INTO public.migrations (id, run_at) VALUES ('1596838897-files.sql', '2020 -- --- Data for Name: review_comments; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: review_comments; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.review_comments (id, created, updated, review_id, user_id, content, comment_type, type) VALUES ('352a2a97-39b9-4554-bc90-24d236918756', '2021-03-10 12:48:37.862+01', '2021-03-10 12:48:37.862+01', '8a7a09b9-b744-4bc9-afd4-c481e403524c', NULL, '<p>Great paper, congratulations! Gale Davis</p>', 'review', 'ReviewComment'); @@ -537,7 +537,7 @@ INSERT INTO public.review_comments (id, created, updated, review_id, user_id, co -- --- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.reviews (id, created, updated, recommendation, is_decision, user_id, manuscript_id, type) VALUES ('8a7a09b9-b744-4bc9-afd4-c481e403524c', '2021-03-10 12:48:36.506+01', '2021-03-10 12:48:38.838+01', 'accepted', false, '40e3d054-9ac8-4c0f-84ed-e3c6307662cd', '06ea851c-619c-453e-a12e-6568da11252c', 'Review'); @@ -547,7 +547,7 @@ INSERT INTO public.reviews (id, created, updated, recommendation, is_decision, u -- --- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.team_members (id, created, updated, status, team_id, user_id, alias_id) VALUES ('df69d471-bead-42b6-a8b5-d1bff0a36040', '2021-03-10 12:48:02.832+01', '2021-03-10 12:48:02.832+01', NULL, 'dccbd509-505f-4ad6-8ceb-8a42b62c917b', '027afa6a-edbc-486e-bb31-71e12f8ea1c5', NULL); @@ -558,7 +558,7 @@ INSERT INTO public.team_members (id, created, updated, status, team_id, user_id, -- --- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.teams (id, created, updated, name, role, members, owners, global, type, manuscript_id) VALUES ('dccbd509-505f-4ad6-8ceb-8a42b62c917b', '2021-03-10 12:48:02.828+01', '2021-03-10 12:48:02.828+01', 'Author', 'author', NULL, NULL, NULL, 'team', '06ea851c-619c-453e-a12e-6568da11252c'); @@ -567,7 +567,7 @@ INSERT INTO public.teams (id, created, updated, name, role, members, owners, glo -- --- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.users (id, created, updated, admin, email, username, password_hash, teams, password_reset_token, password_reset_timestamp, type, profile_picture, online) VALUES ('231717dd-ba09-43d4-ac98-9d5542b27a0c', '2020-07-22 14:18:36.597+02', '2020-07-24 16:43:54.939+02', NULL, NULL, '000000032536230X', NULL, NULL, NULL, NULL, 'user', '/static/profiles/testuser5.jpg', false); @@ -580,7 +580,7 @@ INSERT INTO public.users (id, created, updated, admin, email, username, password -- --- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.job @@ -588,7 +588,7 @@ ALTER TABLE ONLY pgboss.job -- --- Name: schedule schedule_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: schedule schedule_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.schedule @@ -596,7 +596,7 @@ ALTER TABLE ONLY pgboss.schedule -- --- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.version @@ -604,7 +604,7 @@ ALTER TABLE ONLY pgboss.version -- --- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.aliases @@ -612,7 +612,7 @@ ALTER TABLE ONLY public.aliases -- --- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -620,7 +620,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -628,7 +628,7 @@ ALTER TABLE ONLY public.channels -- --- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.entities @@ -636,7 +636,7 @@ ALTER TABLE ONLY public.entities -- --- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -644,7 +644,7 @@ ALTER TABLE ONLY public.files -- --- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -652,7 +652,7 @@ ALTER TABLE ONLY public.identities -- --- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -660,7 +660,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -668,7 +668,7 @@ ALTER TABLE ONLY public.messages -- --- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.migrations @@ -676,7 +676,7 @@ ALTER TABLE ONLY public.migrations -- --- Name: review_comments review_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -684,7 +684,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.reviews @@ -692,7 +692,7 @@ ALTER TABLE ONLY public.reviews -- --- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -700,7 +700,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.teams @@ -708,7 +708,7 @@ ALTER TABLE ONLY public.teams -- --- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -716,7 +716,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -724,7 +724,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -732,77 +732,77 @@ ALTER TABLE ONLY public.users -- --- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_archivedon_idx ON pgboss.archive USING btree (archivedon); -- --- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_id_idx ON pgboss.archive USING btree (id); -- --- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX job_name ON pgboss.job USING btree (name text_pattern_ops); -- --- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkey ON pgboss.job USING btree (name, singletonkey) WHERE ((state < 'completed'::pgboss.job_state) AND (singletonon IS NULL)); -- --- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkeyon ON pgboss.job USING btree (name, singletonon, singletonkey) WHERE (state < 'expired'::pgboss.job_state); -- --- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonon ON pgboss.job USING btree (name, singletonon) WHERE ((state < 'expired'::pgboss.job_state) AND (singletonkey IS NULL)); -- --- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX channel_members_idx ON public.channel_members USING btree (user_id, channel_id); -- --- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE UNIQUE INDEX is_default_idx ON public.identities USING btree (is_default, user_id) WHERE (is_default IS TRUE); -- --- Name: team_members_team_id_user_id_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: team_members_team_id_user_id_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX team_members_team_id_user_id_idx ON public.team_members USING btree (team_id, user_id); -- --- Name: teams_manuscript_id_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: teams_manuscript_id_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX teams_manuscript_id_idx ON public.teams USING btree (manuscript_id); -- --- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -810,7 +810,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -818,7 +818,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -826,7 +826,7 @@ ALTER TABLE ONLY public.channels -- --- Name: files files_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -834,7 +834,7 @@ ALTER TABLE ONLY public.files -- --- Name: files files_review_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_review_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -842,7 +842,7 @@ ALTER TABLE ONLY public.files -- --- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -850,7 +850,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -858,7 +858,7 @@ ALTER TABLE ONLY public.messages -- --- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -866,7 +866,7 @@ ALTER TABLE ONLY public.messages -- --- Name: review_comments review_comments_review_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_review_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -874,7 +874,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: review_comments review_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -882,7 +882,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: reviews reviews_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: reviews reviews_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.reviews @@ -890,7 +890,7 @@ ALTER TABLE ONLY public.reviews -- --- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -898,7 +898,7 @@ ALTER TABLE ONLY public.identities -- --- Name: team_members team_members_alias_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_alias_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -906,7 +906,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -914,7 +914,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -922,7 +922,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: teams teams_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: teams teams_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.teams diff --git a/cypress/dumps/initialState.sql b/cypress/dumps/initialState.sql index 37a5bbbc61bb993d01a6d6a5e001ec7fa861dadc..5c756b515e3b880cfdbfb0517e760a907dbeae2f 100644 --- a/cypress/dumps/initialState.sql +++ b/cypress/dumps/initialState.sql @@ -16,13 +16,13 @@ SET client_min_messages = warning; SET row_security = off; -- --- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahitest +-- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahidev -- CREATE SCHEMA pgboss; -ALTER SCHEMA pgboss OWNER TO kotahitest; +ALTER SCHEMA pgboss OWNER TO kotahidev; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: @@ -53,7 +53,7 @@ COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions'; -- --- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahitest +-- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahidev -- CREATE TYPE pgboss.job_state AS ENUM ( @@ -67,14 +67,14 @@ CREATE TYPE pgboss.job_state AS ENUM ( ); -ALTER TYPE pgboss.job_state OWNER TO kotahitest; +ALTER TYPE pgboss.job_state OWNER TO kotahidev; SET default_tablespace = ''; SET default_with_oids = false; -- --- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.archive ( @@ -100,10 +100,10 @@ CREATE TABLE pgboss.archive ( ); -ALTER TABLE pgboss.archive OWNER TO kotahitest; +ALTER TABLE pgboss.archive OWNER TO kotahidev; -- --- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.job ( @@ -128,10 +128,10 @@ CREATE TABLE pgboss.job ( ); -ALTER TABLE pgboss.job OWNER TO kotahitest; +ALTER TABLE pgboss.job OWNER TO kotahidev; -- --- Name: schedule; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: schedule; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.schedule ( @@ -145,10 +145,10 @@ CREATE TABLE pgboss.schedule ( ); -ALTER TABLE pgboss.schedule OWNER TO kotahitest; +ALTER TABLE pgboss.schedule OWNER TO kotahidev; -- --- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.version ( @@ -158,10 +158,10 @@ CREATE TABLE pgboss.version ( ); -ALTER TABLE pgboss.version OWNER TO kotahitest; +ALTER TABLE pgboss.version OWNER TO kotahidev; -- --- Name: aliases; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: aliases; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.aliases ( @@ -174,10 +174,10 @@ CREATE TABLE public.aliases ( ); -ALTER TABLE public.aliases OWNER TO kotahitest; +ALTER TABLE public.aliases OWNER TO kotahidev; -- --- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channel_members ( @@ -189,10 +189,10 @@ CREATE TABLE public.channel_members ( ); -ALTER TABLE public.channel_members OWNER TO kotahitest; +ALTER TABLE public.channel_members OWNER TO kotahidev; -- --- Name: channels; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channels; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channels ( @@ -205,10 +205,10 @@ CREATE TABLE public.channels ( ); -ALTER TABLE public.channels OWNER TO kotahitest; +ALTER TABLE public.channels OWNER TO kotahidev; -- --- Name: entities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: entities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.entities ( @@ -217,10 +217,10 @@ CREATE TABLE public.entities ( ); -ALTER TABLE public.entities OWNER TO kotahitest; +ALTER TABLE public.entities OWNER TO kotahidev; -- --- Name: files; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: files; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.files ( @@ -240,10 +240,10 @@ CREATE TABLE public.files ( ); -ALTER TABLE public.files OWNER TO kotahitest; +ALTER TABLE public.files OWNER TO kotahidev; -- --- Name: identities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: identities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.identities ( @@ -260,10 +260,10 @@ CREATE TABLE public.identities ( ); -ALTER TABLE public.identities OWNER TO kotahitest; +ALTER TABLE public.identities OWNER TO kotahidev; -- --- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.manuscripts ( @@ -283,10 +283,10 @@ CREATE TABLE public.manuscripts ( ); -ALTER TABLE public.manuscripts OWNER TO kotahitest; +ALTER TABLE public.manuscripts OWNER TO kotahidev; -- --- Name: messages; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: messages; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.messages ( @@ -299,10 +299,10 @@ CREATE TABLE public.messages ( ); -ALTER TABLE public.messages OWNER TO kotahitest; +ALTER TABLE public.messages OWNER TO kotahidev; -- --- Name: migrations; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: migrations; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.migrations ( @@ -311,10 +311,10 @@ CREATE TABLE public.migrations ( ); -ALTER TABLE public.migrations OWNER TO kotahitest; +ALTER TABLE public.migrations OWNER TO kotahidev; -- --- Name: review_comments; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: review_comments; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.review_comments ( @@ -329,10 +329,10 @@ CREATE TABLE public.review_comments ( ); -ALTER TABLE public.review_comments OWNER TO kotahitest; +ALTER TABLE public.review_comments OWNER TO kotahidev; -- --- Name: reviews; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: reviews; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.reviews ( @@ -347,10 +347,10 @@ CREATE TABLE public.reviews ( ); -ALTER TABLE public.reviews OWNER TO kotahitest; +ALTER TABLE public.reviews OWNER TO kotahidev; -- --- Name: team_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: team_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.team_members ( @@ -364,10 +364,10 @@ CREATE TABLE public.team_members ( ); -ALTER TABLE public.team_members OWNER TO kotahitest; +ALTER TABLE public.team_members OWNER TO kotahidev; -- --- Name: teams; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: teams; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.teams ( @@ -384,10 +384,10 @@ CREATE TABLE public.teams ( ); -ALTER TABLE public.teams OWNER TO kotahitest; +ALTER TABLE public.teams OWNER TO kotahidev; -- --- Name: users; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: users; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.users ( @@ -407,16 +407,16 @@ CREATE TABLE public.users ( ); -ALTER TABLE public.users OWNER TO kotahitest; +ALTER TABLE public.users OWNER TO kotahidev; -- --- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- INSERT INTO pgboss.job (id, name, priority, data, state, retrylimit, retrycount, retrydelay, retrybackoff, startafter, startedon, singletonkey, singletonon, expirein, createdon, completedon, keepuntil, on_complete) VALUES ('876670c0-8195-11eb-815e-59df8a5d915a', '__pgboss__maintenance', 0, NULL, 'completed', 0, 0, 0, false, '2021-03-10 12:41:18.669507+01', '2021-03-10 12:41:18.675148+01', '__pgboss__maintenance', NULL, '00:15:00', '2021-03-10 12:41:18.669507+01', '2021-03-10 12:41:18.693727+01', '2021-03-10 12:49:18.669507+01', false); @@ -426,50 +426,50 @@ INSERT INTO pgboss.job (id, name, priority, data, state, retrylimit, retrycount, -- --- Data for Name: schedule; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: schedule; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- INSERT INTO pgboss.version (version, maintained_on, cron_on) VALUES (16, '2021-03-10 12:41:18.691912+01', '2021-03-10 12:41:22.737495+01'); -- --- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.identities (id, user_id, created, updated, type, identifier, name, aff, oauth, is_default) VALUES ('d341a633-cdce-4a7f-a9ad-5afc03cd0dd1', '027afa6a-edbc-486e-bb31-71e12f8ea1c5', '2020-07-21 16:17:24.741+02', '2020-07-21 16:17:25.87+02', 'orcid', '0000-0002-0564-2016', 'Emily Clay', NULL, '{"accessToken": "079a1165-31e5-4b59-9a99-d80ff7a21ebf", "refreshToken": "ccadc737-defc-419e-823b-a9f3673848ba"}', true); @@ -482,19 +482,19 @@ INSERT INTO public.identities (id, user_id, created, updated, type, identifier, -- --- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.migrations (id, run_at) VALUES ('1524494862-entities.sql', '2020-08-16 22:36:46.642584+02'); @@ -515,31 +515,31 @@ INSERT INTO public.migrations (id, run_at) VALUES ('1596838897-files.sql', '2020 -- --- Data for Name: review_comments; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: review_comments; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.users (id, created, updated, admin, email, username, password_hash, teams, password_reset_token, password_reset_timestamp, type, profile_picture, online) VALUES ('85e1300e-003c-4e96-987b-23812f902477', '2020-07-21 16:35:38.381+02', '2020-07-24 16:43:03.114+02', NULL, NULL, '0000000294294446', NULL, NULL, NULL, NULL, 'user', '/static/profiles/testuser1.jpg', false); @@ -552,7 +552,7 @@ INSERT INTO public.users (id, created, updated, admin, email, username, password -- --- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.job @@ -560,7 +560,7 @@ ALTER TABLE ONLY pgboss.job -- --- Name: schedule schedule_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: schedule schedule_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.schedule @@ -568,7 +568,7 @@ ALTER TABLE ONLY pgboss.schedule -- --- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.version @@ -576,7 +576,7 @@ ALTER TABLE ONLY pgboss.version -- --- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.aliases @@ -584,7 +584,7 @@ ALTER TABLE ONLY public.aliases -- --- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -592,7 +592,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -600,7 +600,7 @@ ALTER TABLE ONLY public.channels -- --- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.entities @@ -608,7 +608,7 @@ ALTER TABLE ONLY public.entities -- --- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -616,7 +616,7 @@ ALTER TABLE ONLY public.files -- --- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -624,7 +624,7 @@ ALTER TABLE ONLY public.identities -- --- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -632,7 +632,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -640,7 +640,7 @@ ALTER TABLE ONLY public.messages -- --- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.migrations @@ -648,7 +648,7 @@ ALTER TABLE ONLY public.migrations -- --- Name: review_comments review_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -656,7 +656,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.reviews @@ -664,7 +664,7 @@ ALTER TABLE ONLY public.reviews -- --- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -672,7 +672,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.teams @@ -680,7 +680,7 @@ ALTER TABLE ONLY public.teams -- --- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -688,7 +688,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -696,7 +696,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -704,77 +704,77 @@ ALTER TABLE ONLY public.users -- --- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_archivedon_idx ON pgboss.archive USING btree (archivedon); -- --- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_id_idx ON pgboss.archive USING btree (id); -- --- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX job_name ON pgboss.job USING btree (name text_pattern_ops); -- --- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkey ON pgboss.job USING btree (name, singletonkey) WHERE ((state < 'completed'::pgboss.job_state) AND (singletonon IS NULL)); -- --- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkeyon ON pgboss.job USING btree (name, singletonon, singletonkey) WHERE (state < 'expired'::pgboss.job_state); -- --- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonon ON pgboss.job USING btree (name, singletonon) WHERE ((state < 'expired'::pgboss.job_state) AND (singletonkey IS NULL)); -- --- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX channel_members_idx ON public.channel_members USING btree (user_id, channel_id); -- --- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE UNIQUE INDEX is_default_idx ON public.identities USING btree (is_default, user_id) WHERE (is_default IS TRUE); -- --- Name: team_members_team_id_user_id_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: team_members_team_id_user_id_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX team_members_team_id_user_id_idx ON public.team_members USING btree (team_id, user_id); -- --- Name: teams_manuscript_id_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: teams_manuscript_id_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX teams_manuscript_id_idx ON public.teams USING btree (manuscript_id); -- --- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -782,7 +782,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -790,7 +790,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -798,7 +798,7 @@ ALTER TABLE ONLY public.channels -- --- Name: files files_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -806,7 +806,7 @@ ALTER TABLE ONLY public.files -- --- Name: files files_review_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_review_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -814,7 +814,7 @@ ALTER TABLE ONLY public.files -- --- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -822,7 +822,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -830,7 +830,7 @@ ALTER TABLE ONLY public.messages -- --- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -838,7 +838,7 @@ ALTER TABLE ONLY public.messages -- --- Name: review_comments review_comments_review_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_review_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -846,7 +846,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: review_comments review_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -854,7 +854,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: reviews reviews_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: reviews reviews_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.reviews @@ -862,7 +862,7 @@ ALTER TABLE ONLY public.reviews -- --- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -870,7 +870,7 @@ ALTER TABLE ONLY public.identities -- --- Name: team_members team_members_alias_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_alias_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -878,7 +878,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -886,7 +886,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -894,7 +894,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: teams teams_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: teams teams_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.teams diff --git a/cypress/dumps/published_submission.sql b/cypress/dumps/published_submission.sql index 888831c3b7dffc88c6fe11fd09905d9719f1339b..2c4a7b04af547ef71357c5d16077e751e618c133 100644 --- a/cypress/dumps/published_submission.sql +++ b/cypress/dumps/published_submission.sql @@ -16,13 +16,13 @@ SET client_min_messages = warning; SET row_security = off; -- --- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahitest +-- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahidev -- CREATE SCHEMA pgboss; -ALTER SCHEMA pgboss OWNER TO kotahitest; +ALTER SCHEMA pgboss OWNER TO kotahidev; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: @@ -53,7 +53,7 @@ COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions'; -- --- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahitest +-- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahidev -- CREATE TYPE pgboss.job_state AS ENUM ( @@ -67,14 +67,14 @@ CREATE TYPE pgboss.job_state AS ENUM ( ); -ALTER TYPE pgboss.job_state OWNER TO kotahitest; +ALTER TYPE pgboss.job_state OWNER TO kotahidev; SET default_tablespace = ''; SET default_with_oids = false; -- --- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.archive ( @@ -100,10 +100,10 @@ CREATE TABLE pgboss.archive ( ); -ALTER TABLE pgboss.archive OWNER TO kotahitest; +ALTER TABLE pgboss.archive OWNER TO kotahidev; -- --- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.job ( @@ -128,10 +128,10 @@ CREATE TABLE pgboss.job ( ); -ALTER TABLE pgboss.job OWNER TO kotahitest; +ALTER TABLE pgboss.job OWNER TO kotahidev; -- --- Name: schedule; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: schedule; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.schedule ( @@ -145,10 +145,10 @@ CREATE TABLE pgboss.schedule ( ); -ALTER TABLE pgboss.schedule OWNER TO kotahitest; +ALTER TABLE pgboss.schedule OWNER TO kotahidev; -- --- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.version ( @@ -158,10 +158,10 @@ CREATE TABLE pgboss.version ( ); -ALTER TABLE pgboss.version OWNER TO kotahitest; +ALTER TABLE pgboss.version OWNER TO kotahidev; -- --- Name: aliases; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: aliases; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.aliases ( @@ -174,10 +174,10 @@ CREATE TABLE public.aliases ( ); -ALTER TABLE public.aliases OWNER TO kotahitest; +ALTER TABLE public.aliases OWNER TO kotahidev; -- --- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channel_members ( @@ -189,10 +189,10 @@ CREATE TABLE public.channel_members ( ); -ALTER TABLE public.channel_members OWNER TO kotahitest; +ALTER TABLE public.channel_members OWNER TO kotahidev; -- --- Name: channels; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channels; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channels ( @@ -205,10 +205,10 @@ CREATE TABLE public.channels ( ); -ALTER TABLE public.channels OWNER TO kotahitest; +ALTER TABLE public.channels OWNER TO kotahidev; -- --- Name: entities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: entities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.entities ( @@ -217,10 +217,10 @@ CREATE TABLE public.entities ( ); -ALTER TABLE public.entities OWNER TO kotahitest; +ALTER TABLE public.entities OWNER TO kotahidev; -- --- Name: files; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: files; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.files ( @@ -240,10 +240,10 @@ CREATE TABLE public.files ( ); -ALTER TABLE public.files OWNER TO kotahitest; +ALTER TABLE public.files OWNER TO kotahidev; -- --- Name: identities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: identities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.identities ( @@ -260,10 +260,10 @@ CREATE TABLE public.identities ( ); -ALTER TABLE public.identities OWNER TO kotahitest; +ALTER TABLE public.identities OWNER TO kotahidev; -- --- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.manuscripts ( @@ -283,10 +283,10 @@ CREATE TABLE public.manuscripts ( ); -ALTER TABLE public.manuscripts OWNER TO kotahitest; +ALTER TABLE public.manuscripts OWNER TO kotahidev; -- --- Name: messages; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: messages; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.messages ( @@ -299,10 +299,10 @@ CREATE TABLE public.messages ( ); -ALTER TABLE public.messages OWNER TO kotahitest; +ALTER TABLE public.messages OWNER TO kotahidev; -- --- Name: migrations; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: migrations; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.migrations ( @@ -311,10 +311,10 @@ CREATE TABLE public.migrations ( ); -ALTER TABLE public.migrations OWNER TO kotahitest; +ALTER TABLE public.migrations OWNER TO kotahidev; -- --- Name: review_comments; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: review_comments; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.review_comments ( @@ -329,10 +329,10 @@ CREATE TABLE public.review_comments ( ); -ALTER TABLE public.review_comments OWNER TO kotahitest; +ALTER TABLE public.review_comments OWNER TO kotahidev; -- --- Name: reviews; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: reviews; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.reviews ( @@ -347,10 +347,10 @@ CREATE TABLE public.reviews ( ); -ALTER TABLE public.reviews OWNER TO kotahitest; +ALTER TABLE public.reviews OWNER TO kotahidev; -- --- Name: team_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: team_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.team_members ( @@ -364,10 +364,10 @@ CREATE TABLE public.team_members ( ); -ALTER TABLE public.team_members OWNER TO kotahitest; +ALTER TABLE public.team_members OWNER TO kotahidev; -- --- Name: teams; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: teams; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.teams ( @@ -384,10 +384,10 @@ CREATE TABLE public.teams ( ); -ALTER TABLE public.teams OWNER TO kotahitest; +ALTER TABLE public.teams OWNER TO kotahidev; -- --- Name: users; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: users; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.users ( @@ -407,16 +407,16 @@ CREATE TABLE public.users ( ); -ALTER TABLE public.users OWNER TO kotahitest; +ALTER TABLE public.users OWNER TO kotahidev; -- --- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- INSERT INTO pgboss.job (id, name, priority, data, state, retrylimit, retrycount, retrydelay, retrybackoff, startafter, startedon, singletonkey, singletonon, expirein, createdon, completedon, keepuntil, on_complete) VALUES ('876670c0-8195-11eb-815e-59df8a5d915a', '__pgboss__maintenance', 0, NULL, 'completed', 0, 0, 0, false, '2021-03-10 12:41:18.669507+01', '2021-03-10 12:41:18.675148+01', '__pgboss__maintenance', NULL, '00:15:00', '2021-03-10 12:41:18.669507+01', '2021-03-10 12:41:18.693727+01', '2021-03-10 12:49:18.669507+01', false); @@ -432,32 +432,32 @@ INSERT INTO pgboss.job (id, name, priority, data, state, retrylimit, retrycount, -- --- Data for Name: schedule; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: schedule; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- INSERT INTO pgboss.version (version, maintained_on, cron_on) VALUES (16, '2021-03-10 12:48:18.764191+01', '2021-03-10 13:54:09.752088+01'); -- --- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.channels (id, manuscript_id, created, updated, topic, type) VALUES ('fbb752f5-fb46-4ab6-9896-bcf34a384c92', '06ea851c-619c-453e-a12e-6568da11252c', '2021-03-10 12:48:02.828+01', '2021-03-10 12:48:02.828+01', 'Manuscript discussion', 'all'); @@ -465,20 +465,20 @@ INSERT INTO public.channels (id, manuscript_id, created, updated, topic, type) V -- --- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.files (id, created, updated, label, file_type, filename, url, mime_type, size, type, manuscript_id, review_comment_id) VALUES ('81ffbef0-c77e-46dc-a86c-864f7f1f336c', '2021-03-10 12:48:21.069+01', '2021-03-10 12:48:21.069+01', NULL, 'supplementary', 'test-pdf.pdf', '/static/uploads/508239154500088a36827c250d0b83b7.pdf', 'application/pdf', 142400, 'file', '06ea851c-619c-453e-a12e-6568da11252c', NULL); -- --- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.identities (id, user_id, created, updated, type, identifier, name, aff, oauth, is_default) VALUES ('d341a633-cdce-4a7f-a9ad-5afc03cd0dd1', '027afa6a-edbc-486e-bb31-71e12f8ea1c5', '2020-07-21 16:17:24.741+02', '2020-07-21 16:17:25.87+02', 'orcid', '0000-0002-0564-2016', 'Emily Clay', NULL, '{"accessToken": "079a1165-31e5-4b59-9a99-d80ff7a21ebf", "refreshToken": "ccadc737-defc-419e-823b-a9f3673848ba"}', true); @@ -491,20 +491,20 @@ INSERT INTO public.identities (id, user_id, created, updated, type, identifier, -- --- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.manuscripts (id, created, updated, parent_id, submitter_id, status, decision, authors, suggestions, meta, submission, published, type) VALUES ('06ea851c-619c-453e-a12e-6568da11252c', '2021-03-10 12:48:02.815+01', '2021-03-10 13:54:11.478+01', NULL, '027afa6a-edbc-486e-bb31-71e12f8ea1c5', 'accepted', 'accepted', NULL, NULL, '{"notes": [{"content": "", "notesType": "fundingAcknowledgement"}, {"content": "", "notesType": "specialInstructions"}], "title": "My URL submission"}', '{"irb": "yes", "name": "Emily Clay", "cover": "This is my cover letter", "links": [{"url": "https://doi.org/10.6084/m9.figshare.913521.v1"}, {"url": "https://github.com/jure/mathtype_to_mathml"}], "ethics": "This is my ethics statement", "contact": "emily@example.com", "methods": ["Functional MRI", "Optical Imaging"], "datacode": "This is my data and code availability statement", "humanMRI": "3T", "keywords": "some, keywords", "packages": ["SPM", "FSL"], "subjects": "patients", "suggested": "Erica James, Matthew Matretzky", "objectType": "software", "affiliation": "Example University, England", "otherMethods": "Erica James, Matthew Matretzky", "humanMRIother": "7T", "animal_research_approval": "yes"}', '2021-03-10 13:54:11.476+01', 'Manuscript'); -- --- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.migrations (id, run_at) VALUES ('1524494862-entities.sql', '2020-08-16 22:36:46.642584+02'); @@ -525,7 +525,7 @@ INSERT INTO public.migrations (id, run_at) VALUES ('1596838897-files.sql', '2020 -- --- Data for Name: review_comments; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: review_comments; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.review_comments (id, created, updated, review_id, user_id, content, comment_type, type) VALUES ('352a2a97-39b9-4554-bc90-24d236918756', '2021-03-10 12:48:37.862+01', '2021-03-10 12:48:37.862+01', '8a7a09b9-b744-4bc9-afd4-c481e403524c', NULL, '<p>Great paper, congratulations! Gale Davis</p>', 'review', 'ReviewComment'); @@ -538,7 +538,7 @@ INSERT INTO public.review_comments (id, created, updated, review_id, user_id, co -- --- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.reviews (id, created, updated, recommendation, is_decision, user_id, manuscript_id, type) VALUES ('8a7a09b9-b744-4bc9-afd4-c481e403524c', '2021-03-10 12:48:36.506+01', '2021-03-10 12:48:38.838+01', 'accepted', false, '40e3d054-9ac8-4c0f-84ed-e3c6307662cd', '06ea851c-619c-453e-a12e-6568da11252c', 'Review'); @@ -548,7 +548,7 @@ INSERT INTO public.reviews (id, created, updated, recommendation, is_decision, u -- --- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.team_members (id, created, updated, status, team_id, user_id, alias_id) VALUES ('df69d471-bead-42b6-a8b5-d1bff0a36040', '2021-03-10 12:48:02.832+01', '2021-03-10 12:48:02.832+01', NULL, 'dccbd509-505f-4ad6-8ceb-8a42b62c917b', '027afa6a-edbc-486e-bb31-71e12f8ea1c5', NULL); @@ -559,7 +559,7 @@ INSERT INTO public.team_members (id, created, updated, status, team_id, user_id, -- --- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.teams (id, created, updated, name, role, members, owners, global, type, manuscript_id) VALUES ('dccbd509-505f-4ad6-8ceb-8a42b62c917b', '2021-03-10 12:48:02.828+01', '2021-03-10 12:48:02.828+01', 'Author', 'author', NULL, NULL, NULL, 'team', '06ea851c-619c-453e-a12e-6568da11252c'); @@ -568,7 +568,7 @@ INSERT INTO public.teams (id, created, updated, name, role, members, owners, glo -- --- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.users (id, created, updated, admin, email, username, password_hash, teams, password_reset_token, password_reset_timestamp, type, profile_picture, online) VALUES ('231717dd-ba09-43d4-ac98-9d5542b27a0c', '2020-07-22 14:18:36.597+02', '2020-07-24 16:43:54.939+02', NULL, NULL, '000000032536230X', NULL, NULL, NULL, NULL, 'user', '/static/profiles/testuser5.jpg', false); @@ -581,7 +581,7 @@ INSERT INTO public.users (id, created, updated, admin, email, username, password -- --- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.job @@ -589,7 +589,7 @@ ALTER TABLE ONLY pgboss.job -- --- Name: schedule schedule_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: schedule schedule_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.schedule @@ -597,7 +597,7 @@ ALTER TABLE ONLY pgboss.schedule -- --- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.version @@ -605,7 +605,7 @@ ALTER TABLE ONLY pgboss.version -- --- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.aliases @@ -613,7 +613,7 @@ ALTER TABLE ONLY public.aliases -- --- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -621,7 +621,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -629,7 +629,7 @@ ALTER TABLE ONLY public.channels -- --- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.entities @@ -637,7 +637,7 @@ ALTER TABLE ONLY public.entities -- --- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -645,7 +645,7 @@ ALTER TABLE ONLY public.files -- --- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -653,7 +653,7 @@ ALTER TABLE ONLY public.identities -- --- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -661,7 +661,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -669,7 +669,7 @@ ALTER TABLE ONLY public.messages -- --- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.migrations @@ -677,7 +677,7 @@ ALTER TABLE ONLY public.migrations -- --- Name: review_comments review_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -685,7 +685,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.reviews @@ -693,7 +693,7 @@ ALTER TABLE ONLY public.reviews -- --- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -701,7 +701,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.teams @@ -709,7 +709,7 @@ ALTER TABLE ONLY public.teams -- --- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -717,7 +717,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -725,7 +725,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -733,77 +733,77 @@ ALTER TABLE ONLY public.users -- --- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_archivedon_idx ON pgboss.archive USING btree (archivedon); -- --- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_id_idx ON pgboss.archive USING btree (id); -- --- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX job_name ON pgboss.job USING btree (name text_pattern_ops); -- --- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkey ON pgboss.job USING btree (name, singletonkey) WHERE ((state < 'completed'::pgboss.job_state) AND (singletonon IS NULL)); -- --- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkeyon ON pgboss.job USING btree (name, singletonon, singletonkey) WHERE (state < 'expired'::pgboss.job_state); -- --- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonon ON pgboss.job USING btree (name, singletonon) WHERE ((state < 'expired'::pgboss.job_state) AND (singletonkey IS NULL)); -- --- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX channel_members_idx ON public.channel_members USING btree (user_id, channel_id); -- --- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE UNIQUE INDEX is_default_idx ON public.identities USING btree (is_default, user_id) WHERE (is_default IS TRUE); -- --- Name: team_members_team_id_user_id_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: team_members_team_id_user_id_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX team_members_team_id_user_id_idx ON public.team_members USING btree (team_id, user_id); -- --- Name: teams_manuscript_id_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: teams_manuscript_id_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX teams_manuscript_id_idx ON public.teams USING btree (manuscript_id); -- --- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -811,7 +811,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -819,7 +819,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -827,7 +827,7 @@ ALTER TABLE ONLY public.channels -- --- Name: files files_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -835,7 +835,7 @@ ALTER TABLE ONLY public.files -- --- Name: files files_review_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_review_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -843,7 +843,7 @@ ALTER TABLE ONLY public.files -- --- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -851,7 +851,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -859,7 +859,7 @@ ALTER TABLE ONLY public.messages -- --- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -867,7 +867,7 @@ ALTER TABLE ONLY public.messages -- --- Name: review_comments review_comments_review_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_review_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -875,7 +875,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: review_comments review_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -883,7 +883,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: reviews reviews_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: reviews reviews_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.reviews @@ -891,7 +891,7 @@ ALTER TABLE ONLY public.reviews -- --- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -899,7 +899,7 @@ ALTER TABLE ONLY public.identities -- --- Name: team_members team_members_alias_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_alias_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -907,7 +907,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -915,7 +915,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -923,7 +923,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: teams teams_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: teams teams_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.teams diff --git a/cypress/dumps/reviewers_invited.sql b/cypress/dumps/reviewers_invited.sql index 9d4df4c58c9c78f3a49cc71ed735908cd6b61fef..0d55743a6356cca7fdde939c508844352424bb4e 100644 --- a/cypress/dumps/reviewers_invited.sql +++ b/cypress/dumps/reviewers_invited.sql @@ -16,13 +16,13 @@ SET client_min_messages = warning; SET row_security = off; -- --- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahitest +-- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahidev -- CREATE SCHEMA pgboss; -ALTER SCHEMA pgboss OWNER TO kotahitest; +ALTER SCHEMA pgboss OWNER TO kotahidev; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: @@ -53,7 +53,7 @@ COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions'; -- --- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahitest +-- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahidev -- CREATE TYPE pgboss.job_state AS ENUM ( @@ -67,14 +67,14 @@ CREATE TYPE pgboss.job_state AS ENUM ( ); -ALTER TYPE pgboss.job_state OWNER TO kotahitest; +ALTER TYPE pgboss.job_state OWNER TO kotahidev; SET default_tablespace = ''; SET default_with_oids = false; -- --- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.archive ( @@ -100,10 +100,10 @@ CREATE TABLE pgboss.archive ( ); -ALTER TABLE pgboss.archive OWNER TO kotahitest; +ALTER TABLE pgboss.archive OWNER TO kotahidev; -- --- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.job ( @@ -128,10 +128,10 @@ CREATE TABLE pgboss.job ( ); -ALTER TABLE pgboss.job OWNER TO kotahitest; +ALTER TABLE pgboss.job OWNER TO kotahidev; -- --- Name: schedule; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: schedule; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.schedule ( @@ -145,10 +145,10 @@ CREATE TABLE pgboss.schedule ( ); -ALTER TABLE pgboss.schedule OWNER TO kotahitest; +ALTER TABLE pgboss.schedule OWNER TO kotahidev; -- --- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.version ( @@ -158,10 +158,10 @@ CREATE TABLE pgboss.version ( ); -ALTER TABLE pgboss.version OWNER TO kotahitest; +ALTER TABLE pgboss.version OWNER TO kotahidev; -- --- Name: aliases; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: aliases; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.aliases ( @@ -174,10 +174,10 @@ CREATE TABLE public.aliases ( ); -ALTER TABLE public.aliases OWNER TO kotahitest; +ALTER TABLE public.aliases OWNER TO kotahidev; -- --- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channel_members ( @@ -189,10 +189,10 @@ CREATE TABLE public.channel_members ( ); -ALTER TABLE public.channel_members OWNER TO kotahitest; +ALTER TABLE public.channel_members OWNER TO kotahidev; -- --- Name: channels; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channels; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channels ( @@ -205,10 +205,10 @@ CREATE TABLE public.channels ( ); -ALTER TABLE public.channels OWNER TO kotahitest; +ALTER TABLE public.channels OWNER TO kotahidev; -- --- Name: entities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: entities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.entities ( @@ -217,10 +217,10 @@ CREATE TABLE public.entities ( ); -ALTER TABLE public.entities OWNER TO kotahitest; +ALTER TABLE public.entities OWNER TO kotahidev; -- --- Name: files; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: files; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.files ( @@ -240,10 +240,10 @@ CREATE TABLE public.files ( ); -ALTER TABLE public.files OWNER TO kotahitest; +ALTER TABLE public.files OWNER TO kotahidev; -- --- Name: identities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: identities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.identities ( @@ -260,10 +260,10 @@ CREATE TABLE public.identities ( ); -ALTER TABLE public.identities OWNER TO kotahitest; +ALTER TABLE public.identities OWNER TO kotahidev; -- --- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.manuscripts ( @@ -283,10 +283,10 @@ CREATE TABLE public.manuscripts ( ); -ALTER TABLE public.manuscripts OWNER TO kotahitest; +ALTER TABLE public.manuscripts OWNER TO kotahidev; -- --- Name: messages; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: messages; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.messages ( @@ -299,10 +299,10 @@ CREATE TABLE public.messages ( ); -ALTER TABLE public.messages OWNER TO kotahitest; +ALTER TABLE public.messages OWNER TO kotahidev; -- --- Name: migrations; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: migrations; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.migrations ( @@ -311,10 +311,10 @@ CREATE TABLE public.migrations ( ); -ALTER TABLE public.migrations OWNER TO kotahitest; +ALTER TABLE public.migrations OWNER TO kotahidev; -- --- Name: review_comments; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: review_comments; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.review_comments ( @@ -329,10 +329,10 @@ CREATE TABLE public.review_comments ( ); -ALTER TABLE public.review_comments OWNER TO kotahitest; +ALTER TABLE public.review_comments OWNER TO kotahidev; -- --- Name: reviews; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: reviews; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.reviews ( @@ -347,10 +347,10 @@ CREATE TABLE public.reviews ( ); -ALTER TABLE public.reviews OWNER TO kotahitest; +ALTER TABLE public.reviews OWNER TO kotahidev; -- --- Name: team_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: team_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.team_members ( @@ -364,10 +364,10 @@ CREATE TABLE public.team_members ( ); -ALTER TABLE public.team_members OWNER TO kotahitest; +ALTER TABLE public.team_members OWNER TO kotahidev; -- --- Name: teams; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: teams; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.teams ( @@ -384,10 +384,10 @@ CREATE TABLE public.teams ( ); -ALTER TABLE public.teams OWNER TO kotahitest; +ALTER TABLE public.teams OWNER TO kotahidev; -- --- Name: users; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: users; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.users ( @@ -407,16 +407,16 @@ CREATE TABLE public.users ( ); -ALTER TABLE public.users OWNER TO kotahitest; +ALTER TABLE public.users OWNER TO kotahidev; -- --- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- INSERT INTO pgboss.job (id, name, priority, data, state, retrylimit, retrycount, retrydelay, retrybackoff, startafter, startedon, singletonkey, singletonon, expirein, createdon, completedon, keepuntil, on_complete) VALUES ('876670c0-8195-11eb-815e-59df8a5d915a', '__pgboss__maintenance', 0, NULL, 'completed', 0, 0, 0, false, '2021-03-10 12:41:18.669507+01', '2021-03-10 12:41:18.675148+01', '__pgboss__maintenance', NULL, '00:15:00', '2021-03-10 12:41:18.669507+01', '2021-03-10 12:41:18.693727+01', '2021-03-10 12:49:18.669507+01', false); @@ -429,32 +429,32 @@ INSERT INTO pgboss.job (id, name, priority, data, state, retrylimit, retrycount, -- --- Data for Name: schedule; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: schedule; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- INSERT INTO pgboss.version (version, maintained_on, cron_on) VALUES (16, '2021-03-10 12:48:18.764191+01', '2021-03-10 12:48:06.965457+01'); -- --- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.channels (id, manuscript_id, created, updated, topic, type) VALUES ('fbb752f5-fb46-4ab6-9896-bcf34a384c92', '06ea851c-619c-453e-a12e-6568da11252c', '2021-03-10 12:48:02.828+01', '2021-03-10 12:48:02.828+01', 'Manuscript discussion', 'all'); @@ -462,20 +462,20 @@ INSERT INTO public.channels (id, manuscript_id, created, updated, topic, type) V -- --- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.files (id, created, updated, label, file_type, filename, url, mime_type, size, type, manuscript_id, review_comment_id) VALUES ('81ffbef0-c77e-46dc-a86c-864f7f1f336c', '2021-03-10 12:48:21.069+01', '2021-03-10 12:48:21.069+01', NULL, 'supplementary', 'test-pdf.pdf', '/static/uploads/508239154500088a36827c250d0b83b7.pdf', 'application/pdf', 142400, 'file', '06ea851c-619c-453e-a12e-6568da11252c', NULL); -- --- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.identities (id, user_id, created, updated, type, identifier, name, aff, oauth, is_default) VALUES ('d341a633-cdce-4a7f-a9ad-5afc03cd0dd1', '027afa6a-edbc-486e-bb31-71e12f8ea1c5', '2020-07-21 16:17:24.741+02', '2020-07-21 16:17:25.87+02', 'orcid', '0000-0002-0564-2016', 'Emily Clay', NULL, '{"accessToken": "079a1165-31e5-4b59-9a99-d80ff7a21ebf", "refreshToken": "ccadc737-defc-419e-823b-a9f3673848ba"}', true); @@ -488,20 +488,20 @@ INSERT INTO public.identities (id, user_id, created, updated, type, identifier, -- --- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.manuscripts (id, created, updated, parent_id, submitter_id, status, decision, authors, suggestions, meta, submission, published, type) VALUES ('06ea851c-619c-453e-a12e-6568da11252c', '2021-03-10 12:48:02.815+01', '2021-03-10 12:48:28.803+01', NULL, '027afa6a-edbc-486e-bb31-71e12f8ea1c5', 'submitted', NULL, NULL, NULL, '{"notes": [{"content": "", "notesType": "fundingAcknowledgement"}, {"content": "", "notesType": "specialInstructions"}], "title": "My URL submission"}', '{"irb": "yes", "name": "Emily Clay", "cover": "This is my cover letter", "links": [{"url": "https://doi.org/10.6084/m9.figshare.913521.v1"}, {"url": "https://github.com/jure/mathtype_to_mathml"}], "ethics": "This is my ethics statement", "contact": "emily@example.com", "methods": ["Functional MRI", "Optical Imaging"], "datacode": "This is my data and code availability statement", "humanMRI": "3T", "keywords": "some, keywords", "packages": ["SPM", "FSL"], "subjects": "patients", "suggested": "Erica James, Matthew Matretzky", "objectType": "software", "affiliation": "Example University, England", "otherMethods": "Erica James, Matthew Matretzky", "humanMRIother": "7T", "animal_research_approval": "yes"}', NULL, 'Manuscript'); -- --- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.migrations (id, run_at) VALUES ('1524494862-entities.sql', '2020-08-16 22:36:46.642584+02'); @@ -522,19 +522,19 @@ INSERT INTO public.migrations (id, run_at) VALUES ('1596838897-files.sql', '2020 -- --- Data for Name: review_comments; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: review_comments; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.team_members (id, created, updated, status, team_id, user_id, alias_id) VALUES ('df69d471-bead-42b6-a8b5-d1bff0a36040', '2021-03-10 12:48:02.832+01', '2021-03-10 12:48:02.832+01', NULL, 'dccbd509-505f-4ad6-8ceb-8a42b62c917b', '027afa6a-edbc-486e-bb31-71e12f8ea1c5', NULL); @@ -545,7 +545,7 @@ INSERT INTO public.team_members (id, created, updated, status, team_id, user_id, -- --- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.teams (id, created, updated, name, role, members, owners, global, type, manuscript_id) VALUES ('dccbd509-505f-4ad6-8ceb-8a42b62c917b', '2021-03-10 12:48:02.828+01', '2021-03-10 12:48:02.828+01', 'Author', 'author', NULL, NULL, NULL, 'team', '06ea851c-619c-453e-a12e-6568da11252c'); @@ -554,7 +554,7 @@ INSERT INTO public.teams (id, created, updated, name, role, members, owners, glo -- --- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.users (id, created, updated, admin, email, username, password_hash, teams, password_reset_token, password_reset_timestamp, type, profile_picture, online) VALUES ('85e1300e-003c-4e96-987b-23812f902477', '2020-07-21 16:35:38.381+02', '2020-07-24 16:43:03.114+02', NULL, NULL, '0000000294294446', NULL, NULL, NULL, NULL, 'user', '/static/profiles/testuser1.jpg', false); @@ -567,7 +567,7 @@ INSERT INTO public.users (id, created, updated, admin, email, username, password -- --- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.job @@ -575,7 +575,7 @@ ALTER TABLE ONLY pgboss.job -- --- Name: schedule schedule_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: schedule schedule_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.schedule @@ -583,7 +583,7 @@ ALTER TABLE ONLY pgboss.schedule -- --- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.version @@ -591,7 +591,7 @@ ALTER TABLE ONLY pgboss.version -- --- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.aliases @@ -599,7 +599,7 @@ ALTER TABLE ONLY public.aliases -- --- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -607,7 +607,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -615,7 +615,7 @@ ALTER TABLE ONLY public.channels -- --- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.entities @@ -623,7 +623,7 @@ ALTER TABLE ONLY public.entities -- --- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -631,7 +631,7 @@ ALTER TABLE ONLY public.files -- --- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -639,7 +639,7 @@ ALTER TABLE ONLY public.identities -- --- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -647,7 +647,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -655,7 +655,7 @@ ALTER TABLE ONLY public.messages -- --- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.migrations @@ -663,7 +663,7 @@ ALTER TABLE ONLY public.migrations -- --- Name: review_comments review_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -671,7 +671,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.reviews @@ -679,7 +679,7 @@ ALTER TABLE ONLY public.reviews -- --- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -687,7 +687,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.teams @@ -695,7 +695,7 @@ ALTER TABLE ONLY public.teams -- --- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -703,7 +703,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -711,7 +711,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -719,77 +719,77 @@ ALTER TABLE ONLY public.users -- --- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_archivedon_idx ON pgboss.archive USING btree (archivedon); -- --- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_id_idx ON pgboss.archive USING btree (id); -- --- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX job_name ON pgboss.job USING btree (name text_pattern_ops); -- --- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkey ON pgboss.job USING btree (name, singletonkey) WHERE ((state < 'completed'::pgboss.job_state) AND (singletonon IS NULL)); -- --- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkeyon ON pgboss.job USING btree (name, singletonon, singletonkey) WHERE (state < 'expired'::pgboss.job_state); -- --- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonon ON pgboss.job USING btree (name, singletonon) WHERE ((state < 'expired'::pgboss.job_state) AND (singletonkey IS NULL)); -- --- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX channel_members_idx ON public.channel_members USING btree (user_id, channel_id); -- --- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE UNIQUE INDEX is_default_idx ON public.identities USING btree (is_default, user_id) WHERE (is_default IS TRUE); -- --- Name: team_members_team_id_user_id_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: team_members_team_id_user_id_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX team_members_team_id_user_id_idx ON public.team_members USING btree (team_id, user_id); -- --- Name: teams_manuscript_id_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: teams_manuscript_id_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX teams_manuscript_id_idx ON public.teams USING btree (manuscript_id); -- --- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -797,7 +797,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -805,7 +805,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -813,7 +813,7 @@ ALTER TABLE ONLY public.channels -- --- Name: files files_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -821,7 +821,7 @@ ALTER TABLE ONLY public.files -- --- Name: files files_review_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_review_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -829,7 +829,7 @@ ALTER TABLE ONLY public.files -- --- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -837,7 +837,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -845,7 +845,7 @@ ALTER TABLE ONLY public.messages -- --- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -853,7 +853,7 @@ ALTER TABLE ONLY public.messages -- --- Name: review_comments review_comments_review_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_review_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -861,7 +861,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: review_comments review_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -869,7 +869,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: reviews reviews_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: reviews reviews_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.reviews @@ -877,7 +877,7 @@ ALTER TABLE ONLY public.reviews -- --- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -885,7 +885,7 @@ ALTER TABLE ONLY public.identities -- --- Name: team_members team_members_alias_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_alias_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -893,7 +893,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -901,7 +901,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -909,7 +909,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: teams teams_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: teams teams_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.teams diff --git a/cypress/dumps/senior_editor_assigned.sql b/cypress/dumps/senior_editor_assigned.sql index db0548bb193dc13e1da47fc619c574733b4f48c8..44d9b478774b1a0e890c73654e5204976809eaf5 100644 --- a/cypress/dumps/senior_editor_assigned.sql +++ b/cypress/dumps/senior_editor_assigned.sql @@ -16,13 +16,13 @@ SET client_min_messages = warning; SET row_security = off; -- --- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahitest +-- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahidev -- CREATE SCHEMA pgboss; -ALTER SCHEMA pgboss OWNER TO kotahitest; +ALTER SCHEMA pgboss OWNER TO kotahidev; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: @@ -53,7 +53,7 @@ COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions'; -- --- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahitest +-- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahidev -- CREATE TYPE pgboss.job_state AS ENUM ( @@ -67,14 +67,14 @@ CREATE TYPE pgboss.job_state AS ENUM ( ); -ALTER TYPE pgboss.job_state OWNER TO kotahitest; +ALTER TYPE pgboss.job_state OWNER TO kotahidev; SET default_tablespace = ''; SET default_with_oids = false; -- --- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.archive ( @@ -100,10 +100,10 @@ CREATE TABLE pgboss.archive ( ); -ALTER TABLE pgboss.archive OWNER TO kotahitest; +ALTER TABLE pgboss.archive OWNER TO kotahidev; -- --- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.job ( @@ -128,10 +128,10 @@ CREATE TABLE pgboss.job ( ); -ALTER TABLE pgboss.job OWNER TO kotahitest; +ALTER TABLE pgboss.job OWNER TO kotahidev; -- --- Name: schedule; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: schedule; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.schedule ( @@ -145,10 +145,10 @@ CREATE TABLE pgboss.schedule ( ); -ALTER TABLE pgboss.schedule OWNER TO kotahitest; +ALTER TABLE pgboss.schedule OWNER TO kotahidev; -- --- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.version ( @@ -158,10 +158,10 @@ CREATE TABLE pgboss.version ( ); -ALTER TABLE pgboss.version OWNER TO kotahitest; +ALTER TABLE pgboss.version OWNER TO kotahidev; -- --- Name: aliases; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: aliases; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.aliases ( @@ -174,10 +174,10 @@ CREATE TABLE public.aliases ( ); -ALTER TABLE public.aliases OWNER TO kotahitest; +ALTER TABLE public.aliases OWNER TO kotahidev; -- --- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channel_members ( @@ -189,10 +189,10 @@ CREATE TABLE public.channel_members ( ); -ALTER TABLE public.channel_members OWNER TO kotahitest; +ALTER TABLE public.channel_members OWNER TO kotahidev; -- --- Name: channels; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channels; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channels ( @@ -205,10 +205,10 @@ CREATE TABLE public.channels ( ); -ALTER TABLE public.channels OWNER TO kotahitest; +ALTER TABLE public.channels OWNER TO kotahidev; -- --- Name: entities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: entities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.entities ( @@ -217,10 +217,10 @@ CREATE TABLE public.entities ( ); -ALTER TABLE public.entities OWNER TO kotahitest; +ALTER TABLE public.entities OWNER TO kotahidev; -- --- Name: files; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: files; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.files ( @@ -240,10 +240,10 @@ CREATE TABLE public.files ( ); -ALTER TABLE public.files OWNER TO kotahitest; +ALTER TABLE public.files OWNER TO kotahidev; -- --- Name: identities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: identities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.identities ( @@ -260,10 +260,10 @@ CREATE TABLE public.identities ( ); -ALTER TABLE public.identities OWNER TO kotahitest; +ALTER TABLE public.identities OWNER TO kotahidev; -- --- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.manuscripts ( @@ -283,10 +283,10 @@ CREATE TABLE public.manuscripts ( ); -ALTER TABLE public.manuscripts OWNER TO kotahitest; +ALTER TABLE public.manuscripts OWNER TO kotahidev; -- --- Name: messages; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: messages; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.messages ( @@ -299,10 +299,10 @@ CREATE TABLE public.messages ( ); -ALTER TABLE public.messages OWNER TO kotahitest; +ALTER TABLE public.messages OWNER TO kotahidev; -- --- Name: migrations; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: migrations; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.migrations ( @@ -311,10 +311,10 @@ CREATE TABLE public.migrations ( ); -ALTER TABLE public.migrations OWNER TO kotahitest; +ALTER TABLE public.migrations OWNER TO kotahidev; -- --- Name: review_comments; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: review_comments; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.review_comments ( @@ -329,10 +329,10 @@ CREATE TABLE public.review_comments ( ); -ALTER TABLE public.review_comments OWNER TO kotahitest; +ALTER TABLE public.review_comments OWNER TO kotahidev; -- --- Name: reviews; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: reviews; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.reviews ( @@ -347,10 +347,10 @@ CREATE TABLE public.reviews ( ); -ALTER TABLE public.reviews OWNER TO kotahitest; +ALTER TABLE public.reviews OWNER TO kotahidev; -- --- Name: team_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: team_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.team_members ( @@ -364,10 +364,10 @@ CREATE TABLE public.team_members ( ); -ALTER TABLE public.team_members OWNER TO kotahitest; +ALTER TABLE public.team_members OWNER TO kotahidev; -- --- Name: teams; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: teams; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.teams ( @@ -384,10 +384,10 @@ CREATE TABLE public.teams ( ); -ALTER TABLE public.teams OWNER TO kotahitest; +ALTER TABLE public.teams OWNER TO kotahidev; -- --- Name: users; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: users; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.users ( @@ -407,16 +407,16 @@ CREATE TABLE public.users ( ); -ALTER TABLE public.users OWNER TO kotahitest; +ALTER TABLE public.users OWNER TO kotahidev; -- --- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- INSERT INTO pgboss.job (id, name, priority, data, state, retrylimit, retrycount, retrydelay, retrybackoff, startafter, startedon, singletonkey, singletonon, expirein, createdon, completedon, keepuntil, on_complete) VALUES ('876670c0-8195-11eb-815e-59df8a5d915a', '__pgboss__maintenance', 0, NULL, 'completed', 0, 0, 0, false, '2021-03-10 12:41:18.669507+01', '2021-03-10 12:41:18.675148+01', '__pgboss__maintenance', NULL, '00:15:00', '2021-03-10 12:41:18.669507+01', '2021-03-10 12:41:18.693727+01', '2021-03-10 12:49:18.669507+01', false); @@ -429,32 +429,32 @@ INSERT INTO pgboss.job (id, name, priority, data, state, retrylimit, retrycount, -- --- Data for Name: schedule; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: schedule; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- INSERT INTO pgboss.version (version, maintained_on, cron_on) VALUES (16, '2021-03-10 12:48:18.764191+01', '2021-03-10 12:48:06.965457+01'); -- --- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.channels (id, manuscript_id, created, updated, topic, type) VALUES ('fbb752f5-fb46-4ab6-9896-bcf34a384c92', '06ea851c-619c-453e-a12e-6568da11252c', '2021-03-10 12:48:02.828+01', '2021-03-10 12:48:02.828+01', 'Manuscript discussion', 'all'); @@ -462,20 +462,20 @@ INSERT INTO public.channels (id, manuscript_id, created, updated, topic, type) V -- --- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.files (id, created, updated, label, file_type, filename, url, mime_type, size, type, manuscript_id, review_comment_id) VALUES ('81ffbef0-c77e-46dc-a86c-864f7f1f336c', '2021-03-10 12:48:21.069+01', '2021-03-10 12:48:21.069+01', NULL, 'supplementary', 'test-pdf.pdf', '/static/uploads/508239154500088a36827c250d0b83b7.pdf', 'application/pdf', 142400, 'file', '06ea851c-619c-453e-a12e-6568da11252c', NULL); -- --- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.identities (id, user_id, created, updated, type, identifier, name, aff, oauth, is_default) VALUES ('d341a633-cdce-4a7f-a9ad-5afc03cd0dd1', '027afa6a-edbc-486e-bb31-71e12f8ea1c5', '2020-07-21 16:17:24.741+02', '2020-07-21 16:17:25.87+02', 'orcid', '0000-0002-0564-2016', 'Emily Clay', NULL, '{"accessToken": "079a1165-31e5-4b59-9a99-d80ff7a21ebf", "refreshToken": "ccadc737-defc-419e-823b-a9f3673848ba"}', true); @@ -488,20 +488,20 @@ INSERT INTO public.identities (id, user_id, created, updated, type, identifier, -- --- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.manuscripts (id, created, updated, parent_id, submitter_id, status, decision, authors, suggestions, meta, submission, published, type) VALUES ('06ea851c-619c-453e-a12e-6568da11252c', '2021-03-10 12:48:02.815+01', '2021-03-10 12:48:28.803+01', NULL, '027afa6a-edbc-486e-bb31-71e12f8ea1c5', 'submitted', NULL, NULL, NULL, '{"notes": [{"content": "", "notesType": "fundingAcknowledgement"}, {"content": "", "notesType": "specialInstructions"}], "title": "My URL submission"}', '{"irb": "yes", "name": "Emily Clay", "cover": "This is my cover letter", "links": [{"url": "https://doi.org/10.6084/m9.figshare.913521.v1"}, {"url": "https://github.com/jure/mathtype_to_mathml"}], "ethics": "This is my ethics statement", "contact": "emily@example.com", "methods": ["Functional MRI", "Optical Imaging"], "datacode": "This is my data and code availability statement", "humanMRI": "3T", "keywords": "some, keywords", "packages": ["SPM", "FSL"], "subjects": "patients", "suggested": "Erica James, Matthew Matretzky", "objectType": "software", "affiliation": "Example University, England", "otherMethods": "Erica James, Matthew Matretzky", "humanMRIother": "7T", "animal_research_approval": "yes"}', NULL, 'Manuscript'); -- --- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.migrations (id, run_at) VALUES ('1524494862-entities.sql', '2020-08-16 22:36:46.642584+02'); @@ -522,19 +522,19 @@ INSERT INTO public.migrations (id, run_at) VALUES ('1596838897-files.sql', '2020 -- --- Data for Name: review_comments; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: review_comments; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.team_members (id, created, updated, status, team_id, user_id, alias_id) VALUES ('df69d471-bead-42b6-a8b5-d1bff0a36040', '2021-03-10 12:48:02.832+01', '2021-03-10 12:48:02.832+01', NULL, 'dccbd509-505f-4ad6-8ceb-8a42b62c917b', '027afa6a-edbc-486e-bb31-71e12f8ea1c5', NULL); @@ -542,7 +542,7 @@ INSERT INTO public.team_members (id, created, updated, status, team_id, user_id, -- --- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.teams (id, created, updated, name, role, members, owners, global, type, manuscript_id) VALUES ('dccbd509-505f-4ad6-8ceb-8a42b62c917b', '2021-03-10 12:48:02.828+01', '2021-03-10 12:48:02.828+01', 'Author', 'author', NULL, NULL, NULL, 'team', '06ea851c-619c-453e-a12e-6568da11252c'); @@ -550,7 +550,7 @@ INSERT INTO public.teams (id, created, updated, name, role, members, owners, glo -- --- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.users (id, created, updated, admin, email, username, password_hash, teams, password_reset_token, password_reset_timestamp, type, profile_picture, online) VALUES ('85e1300e-003c-4e96-987b-23812f902477', '2020-07-21 16:35:38.381+02', '2020-07-24 16:43:03.114+02', NULL, NULL, '0000000294294446', NULL, NULL, NULL, NULL, 'user', '/static/profiles/testuser1.jpg', false); @@ -563,7 +563,7 @@ INSERT INTO public.users (id, created, updated, admin, email, username, password -- --- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.job @@ -571,7 +571,7 @@ ALTER TABLE ONLY pgboss.job -- --- Name: schedule schedule_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: schedule schedule_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.schedule @@ -579,7 +579,7 @@ ALTER TABLE ONLY pgboss.schedule -- --- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.version @@ -587,7 +587,7 @@ ALTER TABLE ONLY pgboss.version -- --- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.aliases @@ -595,7 +595,7 @@ ALTER TABLE ONLY public.aliases -- --- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -603,7 +603,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -611,7 +611,7 @@ ALTER TABLE ONLY public.channels -- --- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.entities @@ -619,7 +619,7 @@ ALTER TABLE ONLY public.entities -- --- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -627,7 +627,7 @@ ALTER TABLE ONLY public.files -- --- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -635,7 +635,7 @@ ALTER TABLE ONLY public.identities -- --- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -643,7 +643,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -651,7 +651,7 @@ ALTER TABLE ONLY public.messages -- --- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.migrations @@ -659,7 +659,7 @@ ALTER TABLE ONLY public.migrations -- --- Name: review_comments review_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -667,7 +667,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.reviews @@ -675,7 +675,7 @@ ALTER TABLE ONLY public.reviews -- --- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -683,7 +683,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.teams @@ -691,7 +691,7 @@ ALTER TABLE ONLY public.teams -- --- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -699,7 +699,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -707,7 +707,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -715,77 +715,77 @@ ALTER TABLE ONLY public.users -- --- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_archivedon_idx ON pgboss.archive USING btree (archivedon); -- --- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_id_idx ON pgboss.archive USING btree (id); -- --- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX job_name ON pgboss.job USING btree (name text_pattern_ops); -- --- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkey ON pgboss.job USING btree (name, singletonkey) WHERE ((state < 'completed'::pgboss.job_state) AND (singletonon IS NULL)); -- --- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkeyon ON pgboss.job USING btree (name, singletonon, singletonkey) WHERE (state < 'expired'::pgboss.job_state); -- --- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonon ON pgboss.job USING btree (name, singletonon) WHERE ((state < 'expired'::pgboss.job_state) AND (singletonkey IS NULL)); -- --- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX channel_members_idx ON public.channel_members USING btree (user_id, channel_id); -- --- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE UNIQUE INDEX is_default_idx ON public.identities USING btree (is_default, user_id) WHERE (is_default IS TRUE); -- --- Name: team_members_team_id_user_id_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: team_members_team_id_user_id_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX team_members_team_id_user_id_idx ON public.team_members USING btree (team_id, user_id); -- --- Name: teams_manuscript_id_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: teams_manuscript_id_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX teams_manuscript_id_idx ON public.teams USING btree (manuscript_id); -- --- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -793,7 +793,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -801,7 +801,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -809,7 +809,7 @@ ALTER TABLE ONLY public.channels -- --- Name: files files_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -817,7 +817,7 @@ ALTER TABLE ONLY public.files -- --- Name: files files_review_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_review_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -825,7 +825,7 @@ ALTER TABLE ONLY public.files -- --- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -833,7 +833,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -841,7 +841,7 @@ ALTER TABLE ONLY public.messages -- --- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -849,7 +849,7 @@ ALTER TABLE ONLY public.messages -- --- Name: review_comments review_comments_review_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_review_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -857,7 +857,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: review_comments review_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -865,7 +865,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: reviews reviews_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: reviews reviews_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.reviews @@ -873,7 +873,7 @@ ALTER TABLE ONLY public.reviews -- --- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -881,7 +881,7 @@ ALTER TABLE ONLY public.identities -- --- Name: team_members team_members_alias_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_alias_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -889,7 +889,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -897,7 +897,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -905,7 +905,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: teams teams_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: teams teams_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.teams diff --git a/cypress/dumps/submission_complete.sql b/cypress/dumps/submission_complete.sql index 0dc4a995845bdd2173d8ea55de7098c719c8c54b..88964c34628025a5519ae6a3a11e37c69aee9016 100644 --- a/cypress/dumps/submission_complete.sql +++ b/cypress/dumps/submission_complete.sql @@ -16,13 +16,13 @@ SET client_min_messages = warning; SET row_security = off; -- --- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahitest +-- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahidev -- CREATE SCHEMA pgboss; -ALTER SCHEMA pgboss OWNER TO kotahitest; +ALTER SCHEMA pgboss OWNER TO kotahidev; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: @@ -53,7 +53,7 @@ COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions'; -- --- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahitest +-- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahidev -- CREATE TYPE pgboss.job_state AS ENUM ( @@ -67,14 +67,14 @@ CREATE TYPE pgboss.job_state AS ENUM ( ); -ALTER TYPE pgboss.job_state OWNER TO kotahitest; +ALTER TYPE pgboss.job_state OWNER TO kotahidev; SET default_tablespace = ''; SET default_with_oids = false; -- --- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.archive ( @@ -100,10 +100,10 @@ CREATE TABLE pgboss.archive ( ); -ALTER TABLE pgboss.archive OWNER TO kotahitest; +ALTER TABLE pgboss.archive OWNER TO kotahidev; -- --- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.job ( @@ -128,10 +128,10 @@ CREATE TABLE pgboss.job ( ); -ALTER TABLE pgboss.job OWNER TO kotahitest; +ALTER TABLE pgboss.job OWNER TO kotahidev; -- --- Name: schedule; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: schedule; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.schedule ( @@ -145,10 +145,10 @@ CREATE TABLE pgboss.schedule ( ); -ALTER TABLE pgboss.schedule OWNER TO kotahitest; +ALTER TABLE pgboss.schedule OWNER TO kotahidev; -- --- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.version ( @@ -158,10 +158,10 @@ CREATE TABLE pgboss.version ( ); -ALTER TABLE pgboss.version OWNER TO kotahitest; +ALTER TABLE pgboss.version OWNER TO kotahidev; -- --- Name: aliases; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: aliases; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.aliases ( @@ -174,10 +174,10 @@ CREATE TABLE public.aliases ( ); -ALTER TABLE public.aliases OWNER TO kotahitest; +ALTER TABLE public.aliases OWNER TO kotahidev; -- --- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channel_members ( @@ -189,10 +189,10 @@ CREATE TABLE public.channel_members ( ); -ALTER TABLE public.channel_members OWNER TO kotahitest; +ALTER TABLE public.channel_members OWNER TO kotahidev; -- --- Name: channels; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channels; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channels ( @@ -205,10 +205,10 @@ CREATE TABLE public.channels ( ); -ALTER TABLE public.channels OWNER TO kotahitest; +ALTER TABLE public.channels OWNER TO kotahidev; -- --- Name: entities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: entities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.entities ( @@ -217,10 +217,10 @@ CREATE TABLE public.entities ( ); -ALTER TABLE public.entities OWNER TO kotahitest; +ALTER TABLE public.entities OWNER TO kotahidev; -- --- Name: files; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: files; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.files ( @@ -240,10 +240,10 @@ CREATE TABLE public.files ( ); -ALTER TABLE public.files OWNER TO kotahitest; +ALTER TABLE public.files OWNER TO kotahidev; -- --- Name: identities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: identities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.identities ( @@ -260,10 +260,10 @@ CREATE TABLE public.identities ( ); -ALTER TABLE public.identities OWNER TO kotahitest; +ALTER TABLE public.identities OWNER TO kotahidev; -- --- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.manuscripts ( @@ -283,10 +283,10 @@ CREATE TABLE public.manuscripts ( ); -ALTER TABLE public.manuscripts OWNER TO kotahitest; +ALTER TABLE public.manuscripts OWNER TO kotahidev; -- --- Name: messages; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: messages; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.messages ( @@ -299,10 +299,10 @@ CREATE TABLE public.messages ( ); -ALTER TABLE public.messages OWNER TO kotahitest; +ALTER TABLE public.messages OWNER TO kotahidev; -- --- Name: migrations; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: migrations; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.migrations ( @@ -311,10 +311,10 @@ CREATE TABLE public.migrations ( ); -ALTER TABLE public.migrations OWNER TO kotahitest; +ALTER TABLE public.migrations OWNER TO kotahidev; -- --- Name: review_comments; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: review_comments; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.review_comments ( @@ -329,10 +329,10 @@ CREATE TABLE public.review_comments ( ); -ALTER TABLE public.review_comments OWNER TO kotahitest; +ALTER TABLE public.review_comments OWNER TO kotahidev; -- --- Name: reviews; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: reviews; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.reviews ( @@ -347,10 +347,10 @@ CREATE TABLE public.reviews ( ); -ALTER TABLE public.reviews OWNER TO kotahitest; +ALTER TABLE public.reviews OWNER TO kotahidev; -- --- Name: team_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: team_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.team_members ( @@ -364,10 +364,10 @@ CREATE TABLE public.team_members ( ); -ALTER TABLE public.team_members OWNER TO kotahitest; +ALTER TABLE public.team_members OWNER TO kotahidev; -- --- Name: teams; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: teams; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.teams ( @@ -384,10 +384,10 @@ CREATE TABLE public.teams ( ); -ALTER TABLE public.teams OWNER TO kotahitest; +ALTER TABLE public.teams OWNER TO kotahidev; -- --- Name: users; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: users; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.users ( @@ -407,16 +407,16 @@ CREATE TABLE public.users ( ); -ALTER TABLE public.users OWNER TO kotahitest; +ALTER TABLE public.users OWNER TO kotahidev; -- --- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- INSERT INTO pgboss.job (id, name, priority, data, state, retrylimit, retrycount, retrydelay, retrybackoff, startafter, startedon, singletonkey, singletonon, expirein, createdon, completedon, keepuntil, on_complete) VALUES ('876670c0-8195-11eb-815e-59df8a5d915a', '__pgboss__maintenance', 0, NULL, 'completed', 0, 0, 0, false, '2021-03-10 12:41:18.669507+01', '2021-03-10 12:41:18.675148+01', '__pgboss__maintenance', NULL, '00:15:00', '2021-03-10 12:41:18.669507+01', '2021-03-10 12:41:18.693727+01', '2021-03-10 12:49:18.669507+01', false); @@ -429,32 +429,32 @@ INSERT INTO pgboss.job (id, name, priority, data, state, retrylimit, retrycount, -- --- Data for Name: schedule; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: schedule; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- INSERT INTO pgboss.version (version, maintained_on, cron_on) VALUES (16, '2021-03-10 12:48:18.764191+01', '2021-03-10 12:48:06.965457+01'); -- --- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.channels (id, manuscript_id, created, updated, topic, type) VALUES ('fbb752f5-fb46-4ab6-9896-bcf34a384c92', '06ea851c-619c-453e-a12e-6568da11252c', '2021-03-10 12:48:02.828+01', '2021-03-10 12:48:02.828+01', 'Manuscript discussion', 'all'); @@ -462,20 +462,20 @@ INSERT INTO public.channels (id, manuscript_id, created, updated, topic, type) V -- --- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.files (id, created, updated, label, file_type, filename, url, mime_type, size, type, manuscript_id, review_comment_id) VALUES ('81ffbef0-c77e-46dc-a86c-864f7f1f336c', '2021-03-10 12:48:21.069+01', '2021-03-10 12:48:21.069+01', NULL, 'supplementary', 'test-pdf.pdf', '/static/uploads/508239154500088a36827c250d0b83b7.pdf', 'application/pdf', 142400, 'file', '06ea851c-619c-453e-a12e-6568da11252c', NULL); -- --- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.identities (id, user_id, created, updated, type, identifier, name, aff, oauth, is_default) VALUES ('d341a633-cdce-4a7f-a9ad-5afc03cd0dd1', '027afa6a-edbc-486e-bb31-71e12f8ea1c5', '2020-07-21 16:17:24.741+02', '2020-07-21 16:17:25.87+02', 'orcid', '0000-0002-0564-2016', 'Emily Clay', NULL, '{"accessToken": "079a1165-31e5-4b59-9a99-d80ff7a21ebf", "refreshToken": "ccadc737-defc-419e-823b-a9f3673848ba"}', true); @@ -488,20 +488,20 @@ INSERT INTO public.identities (id, user_id, created, updated, type, identifier, -- --- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.manuscripts (id, created, updated, parent_id, submitter_id, status, decision, authors, suggestions, meta, submission, published, type) VALUES ('06ea851c-619c-453e-a12e-6568da11252c', '2021-03-10 12:48:02.815+01', '2021-03-10 12:48:28.803+01', NULL, '027afa6a-edbc-486e-bb31-71e12f8ea1c5', 'submitted', NULL, NULL, NULL, '{"notes": [{"content": "", "notesType": "fundingAcknowledgement"}, {"content": "", "notesType": "specialInstructions"}], "title": "My URL submission"}', '{"irb": "yes", "name": "Emily Clay", "cover": "This is my cover letter", "links": [{"url": "https://doi.org/10.6084/m9.figshare.913521.v1"}, {"url": "https://github.com/jure/mathtype_to_mathml"}], "ethics": "This is my ethics statement", "contact": "emily@example.com", "methods": ["Functional MRI", "Optical Imaging"], "datacode": "This is my data and code availability statement", "humanMRI": "3T", "keywords": "some, keywords", "packages": ["SPM", "FSL"], "subjects": "patients", "suggested": "Erica James, Matthew Matretzky", "objectType": "software", "affiliation": "Example University, England", "otherMethods": "Erica James, Matthew Matretzky", "humanMRIother": "7T", "animal_research_approval": "yes"}', NULL, 'Manuscript'); -- --- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.migrations (id, run_at) VALUES ('1524494862-entities.sql', '2020-08-16 22:36:46.642584+02'); @@ -522,33 +522,33 @@ INSERT INTO public.migrations (id, run_at) VALUES ('1596838897-files.sql', '2020 -- --- Data for Name: review_comments; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: review_comments; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.team_members (id, created, updated, status, team_id, user_id, alias_id) VALUES ('df69d471-bead-42b6-a8b5-d1bff0a36040', '2021-03-10 12:48:02.832+01', '2021-03-10 12:48:02.832+01', NULL, 'dccbd509-505f-4ad6-8ceb-8a42b62c917b', '027afa6a-edbc-486e-bb31-71e12f8ea1c5', NULL); -- --- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.teams (id, created, updated, name, role, members, owners, global, type, manuscript_id) VALUES ('dccbd509-505f-4ad6-8ceb-8a42b62c917b', '2021-03-10 12:48:02.828+01', '2021-03-10 12:48:02.828+01', 'Author', 'author', NULL, NULL, NULL, 'team', '06ea851c-619c-453e-a12e-6568da11252c'); -- --- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.users (id, created, updated, admin, email, username, password_hash, teams, password_reset_token, password_reset_timestamp, type, profile_picture, online) VALUES ('85e1300e-003c-4e96-987b-23812f902477', '2020-07-21 16:35:38.381+02', '2020-07-24 16:43:03.114+02', NULL, NULL, '0000000294294446', NULL, NULL, NULL, NULL, 'user', '/static/profiles/testuser1.jpg', false); @@ -561,7 +561,7 @@ INSERT INTO public.users (id, created, updated, admin, email, username, password -- --- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.job @@ -569,7 +569,7 @@ ALTER TABLE ONLY pgboss.job -- --- Name: schedule schedule_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: schedule schedule_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.schedule @@ -577,7 +577,7 @@ ALTER TABLE ONLY pgboss.schedule -- --- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.version @@ -585,7 +585,7 @@ ALTER TABLE ONLY pgboss.version -- --- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.aliases @@ -593,7 +593,7 @@ ALTER TABLE ONLY public.aliases -- --- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -601,7 +601,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -609,7 +609,7 @@ ALTER TABLE ONLY public.channels -- --- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.entities @@ -617,7 +617,7 @@ ALTER TABLE ONLY public.entities -- --- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -625,7 +625,7 @@ ALTER TABLE ONLY public.files -- --- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -633,7 +633,7 @@ ALTER TABLE ONLY public.identities -- --- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -641,7 +641,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -649,7 +649,7 @@ ALTER TABLE ONLY public.messages -- --- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.migrations @@ -657,7 +657,7 @@ ALTER TABLE ONLY public.migrations -- --- Name: review_comments review_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -665,7 +665,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.reviews @@ -673,7 +673,7 @@ ALTER TABLE ONLY public.reviews -- --- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -681,7 +681,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.teams @@ -689,7 +689,7 @@ ALTER TABLE ONLY public.teams -- --- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -697,7 +697,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -705,7 +705,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -713,77 +713,77 @@ ALTER TABLE ONLY public.users -- --- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_archivedon_idx ON pgboss.archive USING btree (archivedon); -- --- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_id_idx ON pgboss.archive USING btree (id); -- --- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX job_name ON pgboss.job USING btree (name text_pattern_ops); -- --- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkey ON pgboss.job USING btree (name, singletonkey) WHERE ((state < 'completed'::pgboss.job_state) AND (singletonon IS NULL)); -- --- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkeyon ON pgboss.job USING btree (name, singletonon, singletonkey) WHERE (state < 'expired'::pgboss.job_state); -- --- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonon ON pgboss.job USING btree (name, singletonon) WHERE ((state < 'expired'::pgboss.job_state) AND (singletonkey IS NULL)); -- --- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX channel_members_idx ON public.channel_members USING btree (user_id, channel_id); -- --- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE UNIQUE INDEX is_default_idx ON public.identities USING btree (is_default, user_id) WHERE (is_default IS TRUE); -- --- Name: team_members_team_id_user_id_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: team_members_team_id_user_id_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX team_members_team_id_user_id_idx ON public.team_members USING btree (team_id, user_id); -- --- Name: teams_manuscript_id_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: teams_manuscript_id_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX teams_manuscript_id_idx ON public.teams USING btree (manuscript_id); -- --- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -791,7 +791,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -799,7 +799,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -807,7 +807,7 @@ ALTER TABLE ONLY public.channels -- --- Name: files files_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -815,7 +815,7 @@ ALTER TABLE ONLY public.files -- --- Name: files files_review_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_review_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -823,7 +823,7 @@ ALTER TABLE ONLY public.files -- --- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -831,7 +831,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -839,7 +839,7 @@ ALTER TABLE ONLY public.messages -- --- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -847,7 +847,7 @@ ALTER TABLE ONLY public.messages -- --- Name: review_comments review_comments_review_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_review_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -855,7 +855,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: review_comments review_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -863,7 +863,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: reviews reviews_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: reviews reviews_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.reviews @@ -871,7 +871,7 @@ ALTER TABLE ONLY public.reviews -- --- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -879,7 +879,7 @@ ALTER TABLE ONLY public.identities -- --- Name: team_members team_members_alias_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_alias_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -887,7 +887,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -895,7 +895,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -903,7 +903,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: teams teams_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: teams teams_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.teams diff --git a/cypress/dumps/submissioncomplete.sql b/cypress/dumps/submissioncomplete.sql index 0a6fd85a2e0773c1abc5435d82699b9ebcee6443..07036d4b37a00c0820c1b55362f59f81595eacfc 100644 --- a/cypress/dumps/submissioncomplete.sql +++ b/cypress/dumps/submissioncomplete.sql @@ -16,13 +16,13 @@ SET client_min_messages = warning; SET row_security = off; -- --- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahitest +-- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahidev -- CREATE SCHEMA pgboss; -ALTER SCHEMA pgboss OWNER TO kotahitest; +ALTER SCHEMA pgboss OWNER TO kotahidev; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: @@ -53,7 +53,7 @@ COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions'; -- --- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahitest +-- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahidev -- CREATE TYPE pgboss.job_state AS ENUM ( @@ -67,14 +67,14 @@ CREATE TYPE pgboss.job_state AS ENUM ( ); -ALTER TYPE pgboss.job_state OWNER TO kotahitest; +ALTER TYPE pgboss.job_state OWNER TO kotahidev; SET default_tablespace = ''; SET default_with_oids = false; -- --- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.archive ( @@ -98,10 +98,10 @@ CREATE TABLE pgboss.archive ( ); -ALTER TABLE pgboss.archive OWNER TO kotahitest; +ALTER TABLE pgboss.archive OWNER TO kotahidev; -- --- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.job ( @@ -124,10 +124,10 @@ CREATE TABLE pgboss.job ( ); -ALTER TABLE pgboss.job OWNER TO kotahitest; +ALTER TABLE pgboss.job OWNER TO kotahidev; -- --- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.version ( @@ -135,10 +135,10 @@ CREATE TABLE pgboss.version ( ); -ALTER TABLE pgboss.version OWNER TO kotahitest; +ALTER TABLE pgboss.version OWNER TO kotahidev; -- --- Name: aliases; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: aliases; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.aliases ( @@ -151,10 +151,10 @@ CREATE TABLE public.aliases ( ); -ALTER TABLE public.aliases OWNER TO kotahitest; +ALTER TABLE public.aliases OWNER TO kotahidev; -- --- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channel_members ( @@ -166,10 +166,10 @@ CREATE TABLE public.channel_members ( ); -ALTER TABLE public.channel_members OWNER TO kotahitest; +ALTER TABLE public.channel_members OWNER TO kotahidev; -- --- Name: channels; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channels; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channels ( @@ -183,10 +183,10 @@ CREATE TABLE public.channels ( ); -ALTER TABLE public.channels OWNER TO kotahitest; +ALTER TABLE public.channels OWNER TO kotahidev; -- --- Name: entities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: entities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.entities ( @@ -195,10 +195,10 @@ CREATE TABLE public.entities ( ); -ALTER TABLE public.entities OWNER TO kotahitest; +ALTER TABLE public.entities OWNER TO kotahidev; -- --- Name: files; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: files; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.files ( @@ -217,10 +217,10 @@ CREATE TABLE public.files ( ); -ALTER TABLE public.files OWNER TO kotahitest; +ALTER TABLE public.files OWNER TO kotahidev; -- --- Name: identities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: identities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.identities ( @@ -237,10 +237,10 @@ CREATE TABLE public.identities ( ); -ALTER TABLE public.identities OWNER TO kotahitest; +ALTER TABLE public.identities OWNER TO kotahidev; -- --- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.manuscripts ( @@ -259,10 +259,10 @@ CREATE TABLE public.manuscripts ( ); -ALTER TABLE public.manuscripts OWNER TO kotahitest; +ALTER TABLE public.manuscripts OWNER TO kotahidev; -- --- Name: messages; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: messages; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.messages ( @@ -275,10 +275,10 @@ CREATE TABLE public.messages ( ); -ALTER TABLE public.messages OWNER TO kotahitest; +ALTER TABLE public.messages OWNER TO kotahidev; -- --- Name: migrations; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: migrations; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.migrations ( @@ -287,10 +287,10 @@ CREATE TABLE public.migrations ( ); -ALTER TABLE public.migrations OWNER TO kotahitest; +ALTER TABLE public.migrations OWNER TO kotahidev; -- --- Name: reviews; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: reviews; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.reviews ( @@ -306,10 +306,10 @@ CREATE TABLE public.reviews ( ); -ALTER TABLE public.reviews OWNER TO kotahitest; +ALTER TABLE public.reviews OWNER TO kotahidev; -- --- Name: team_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: team_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.team_members ( @@ -323,10 +323,10 @@ CREATE TABLE public.team_members ( ); -ALTER TABLE public.team_members OWNER TO kotahitest; +ALTER TABLE public.team_members OWNER TO kotahidev; -- --- Name: teams; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: teams; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.teams ( @@ -343,10 +343,10 @@ CREATE TABLE public.teams ( ); -ALTER TABLE public.teams OWNER TO kotahitest; +ALTER TABLE public.teams OWNER TO kotahidev; -- --- Name: users; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: users; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.users ( @@ -366,41 +366,41 @@ CREATE TABLE public.users ( ); -ALTER TABLE public.users OWNER TO kotahitest; +ALTER TABLE public.users OWNER TO kotahidev; -- --- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- INSERT INTO pgboss.version (version) VALUES ('11'); -- --- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.channels (id, manuscript_id, team_id, created, updated, topic, type) VALUES ('ff5e86ef-2eaf-4327-afc2-9eb968c28fd0', '2357fc20-b99d-4b6f-a715-7d26a05becc3', NULL, '2020-07-27 00:53:31.57+02', '2020-07-27 00:53:31.57+02', 'Manuscript discussion', 'all'); @@ -408,19 +408,19 @@ INSERT INTO public.channels (id, manuscript_id, team_id, created, updated, topic -- --- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.identities (id, user_id, created, updated, type, identifier, name, aff, oauth, is_default) VALUES ('d341a633-cdce-4a7f-a9ad-5afc03cd0dd1', '027afa6a-edbc-486e-bb31-71e12f8ea1c5', '2020-07-21 16:17:24.741+02', '2020-07-21 16:17:25.87+02', 'orcid', '0000-0002-0564-2016', 'Emily Clay', NULL, '{"accessToken": "079a1165-31e5-4b59-9a99-d80ff7a21ebf", "refreshToken": "ccadc737-defc-419e-823b-a9f3673848ba"}', true); @@ -433,20 +433,20 @@ INSERT INTO public.identities (id, user_id, created, updated, type, identifier, -- --- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.manuscripts (id, created, updated, parent_id, submitter_id, status, decision, authors, suggestions, meta, submission, type) VALUES ('2357fc20-b99d-4b6f-a715-7d26a05becc3', '2020-07-27 00:53:31.558+02', '2020-07-27 00:53:56.661+02', NULL, '027afa6a-edbc-486e-bb31-71e12f8ea1c5', 'submitted', NULL, NULL, NULL, '{"notes": [{"content": "", "notesType": "fundingAcknowledgement"}, {"content": "", "notesType": "specialInstructions"}], "title": "My URL submission"}', '{"irb": "yes", "name": "Emily Clay", "cover": "This is my cover letter", "links": "https://doi.org/10.6084/m9.figshare.913521.v1, https://github.com/jure/mathtype_to_mathml", "ethics": "This is my ethics statement", "contact": "emily@example.com", "methods": ["Functional MRI", "Optical Imaging"], "datacode": "This is my data and code availability statement", "humanMRI": "3T", "keywords": "some, keywords", "packages": ["SPM", "FSL"], "subjects": "patients", "suggested": "Erica James, Matthew Matretzky", "objectType": "software", "affiliation": "Example University, Egland", "otherMethods": "Erica James, Matthew Matretzky", "humanMRIother": "7T", "otherPackages": "Jupyter, Stencila", "animal_research_approval": "yes"}', 'Manuscript'); -- --- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.migrations (id, run_at) VALUES ('1524494862-entities.sql', '2020-07-21 16:01:00.856209+02'); @@ -470,27 +470,27 @@ INSERT INTO public.migrations (id, run_at) VALUES ('1592915682-change-identities -- --- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.team_members (id, created, updated, status, team_id, user_id, alias_id) VALUES ('46aae2bc-0014-494b-84b9-78347f985031', '2020-07-27 00:53:31.583+02', '2020-07-27 00:53:31.583+02', NULL, '6e56669b-d835-4a06-b121-922fcaa52c47', '027afa6a-edbc-486e-bb31-71e12f8ea1c5', NULL); -- --- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.teams (id, created, updated, name, role, owners, global, type, object_id, object_type) VALUES ('6e56669b-d835-4a06-b121-922fcaa52c47', '2020-07-27 00:53:31.576+02', '2020-07-27 00:53:31.576+02', 'Author', 'author', NULL, NULL, 'team', '2357fc20-b99d-4b6f-a715-7d26a05becc3', 'Manuscript'); -- --- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.users (id, created, updated, admin, email, username, password_hash, teams, password_reset_token, password_reset_timestamp, type, profile_picture, online) VALUES ('85e1300e-003c-4e96-987b-23812f902477', '2020-07-21 16:35:38.381+02', '2020-07-24 16:43:03.114+02', NULL, NULL, '0000000294294446', NULL, NULL, NULL, NULL, 'user', '/static/profiles/testuser1.jpg', false); @@ -503,7 +503,7 @@ INSERT INTO public.users (id, created, updated, admin, email, username, password -- --- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.job @@ -511,7 +511,7 @@ ALTER TABLE ONLY pgboss.job -- --- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.version @@ -519,7 +519,7 @@ ALTER TABLE ONLY pgboss.version -- --- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.aliases @@ -527,7 +527,7 @@ ALTER TABLE ONLY public.aliases -- --- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -535,7 +535,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -543,7 +543,7 @@ ALTER TABLE ONLY public.channels -- --- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.entities @@ -551,7 +551,7 @@ ALTER TABLE ONLY public.entities -- --- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -559,7 +559,7 @@ ALTER TABLE ONLY public.files -- --- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -567,7 +567,7 @@ ALTER TABLE ONLY public.identities -- --- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -575,7 +575,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -583,7 +583,7 @@ ALTER TABLE ONLY public.messages -- --- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.migrations @@ -591,7 +591,7 @@ ALTER TABLE ONLY public.migrations -- --- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.reviews @@ -599,7 +599,7 @@ ALTER TABLE ONLY public.reviews -- --- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -607,7 +607,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.teams @@ -615,7 +615,7 @@ ALTER TABLE ONLY public.teams -- --- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -623,7 +623,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -631,7 +631,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -639,77 +639,77 @@ ALTER TABLE ONLY public.users -- --- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_archivedon_idx ON pgboss.archive USING btree (archivedon); -- --- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_id_idx ON pgboss.archive USING btree (id); -- --- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX job_name ON pgboss.job USING btree (name text_pattern_ops); -- --- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkey ON pgboss.job USING btree (name, singletonkey) WHERE ((state < 'completed'::pgboss.job_state) AND (singletonon IS NULL)); -- --- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkeyon ON pgboss.job USING btree (name, singletonon, singletonkey) WHERE (state < 'expired'::pgboss.job_state); -- --- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonon ON pgboss.job USING btree (name, singletonon) WHERE ((state < 'expired'::pgboss.job_state) AND (singletonkey IS NULL)); -- --- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX channel_members_idx ON public.channel_members USING btree (user_id, channel_id); -- --- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE UNIQUE INDEX is_default_idx ON public.identities USING btree (is_default, user_id) WHERE (is_default IS TRUE); -- --- Name: team_members_team_id_user_id_index; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: team_members_team_id_user_id_index; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX team_members_team_id_user_id_index ON public.team_members USING btree (team_id, user_id); -- --- Name: teams_object_id_object_type_index; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: teams_object_id_object_type_index; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX teams_object_id_object_type_index ON public.teams USING btree (object_id, object_type); -- --- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -717,7 +717,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -725,7 +725,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -733,7 +733,7 @@ ALTER TABLE ONLY public.channels -- --- Name: channels channels_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -741,7 +741,7 @@ ALTER TABLE ONLY public.channels -- --- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -749,7 +749,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -757,7 +757,7 @@ ALTER TABLE ONLY public.messages -- --- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -765,7 +765,7 @@ ALTER TABLE ONLY public.messages -- --- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -773,7 +773,7 @@ ALTER TABLE ONLY public.identities -- --- Name: team_members team_members_alias_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_alias_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -781,7 +781,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_team_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_team_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -789,7 +789,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_user_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_user_id_foreign; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members diff --git a/cypress/dumps/three_reviews_completed.sql b/cypress/dumps/three_reviews_completed.sql index 30f0f468bbac245e1d669f1c57bcf24a941f908b..2deee1c28e05dc9d6133302c65201ed000e310cc 100644 --- a/cypress/dumps/three_reviews_completed.sql +++ b/cypress/dumps/three_reviews_completed.sql @@ -16,13 +16,13 @@ SET client_min_messages = warning; SET row_security = off; -- --- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahitest +-- Name: pgboss; Type: SCHEMA; Schema: -; Owner: kotahidev -- CREATE SCHEMA pgboss; -ALTER SCHEMA pgboss OWNER TO kotahitest; +ALTER SCHEMA pgboss OWNER TO kotahidev; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: @@ -53,7 +53,7 @@ COMMENT ON EXTENSION pgcrypto IS 'cryptographic functions'; -- --- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahitest +-- Name: job_state; Type: TYPE; Schema: pgboss; Owner: kotahidev -- CREATE TYPE pgboss.job_state AS ENUM ( @@ -67,14 +67,14 @@ CREATE TYPE pgboss.job_state AS ENUM ( ); -ALTER TYPE pgboss.job_state OWNER TO kotahitest; +ALTER TYPE pgboss.job_state OWNER TO kotahidev; SET default_tablespace = ''; SET default_with_oids = false; -- --- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: archive; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.archive ( @@ -100,10 +100,10 @@ CREATE TABLE pgboss.archive ( ); -ALTER TABLE pgboss.archive OWNER TO kotahitest; +ALTER TABLE pgboss.archive OWNER TO kotahidev; -- --- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: job; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.job ( @@ -128,10 +128,10 @@ CREATE TABLE pgboss.job ( ); -ALTER TABLE pgboss.job OWNER TO kotahitest; +ALTER TABLE pgboss.job OWNER TO kotahidev; -- --- Name: schedule; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: schedule; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.schedule ( @@ -145,10 +145,10 @@ CREATE TABLE pgboss.schedule ( ); -ALTER TABLE pgboss.schedule OWNER TO kotahitest; +ALTER TABLE pgboss.schedule OWNER TO kotahidev; -- --- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahitest +-- Name: version; Type: TABLE; Schema: pgboss; Owner: kotahidev -- CREATE TABLE pgboss.version ( @@ -158,10 +158,10 @@ CREATE TABLE pgboss.version ( ); -ALTER TABLE pgboss.version OWNER TO kotahitest; +ALTER TABLE pgboss.version OWNER TO kotahidev; -- --- Name: aliases; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: aliases; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.aliases ( @@ -174,10 +174,10 @@ CREATE TABLE public.aliases ( ); -ALTER TABLE public.aliases OWNER TO kotahitest; +ALTER TABLE public.aliases OWNER TO kotahidev; -- --- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channel_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channel_members ( @@ -189,10 +189,10 @@ CREATE TABLE public.channel_members ( ); -ALTER TABLE public.channel_members OWNER TO kotahitest; +ALTER TABLE public.channel_members OWNER TO kotahidev; -- --- Name: channels; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: channels; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.channels ( @@ -205,10 +205,10 @@ CREATE TABLE public.channels ( ); -ALTER TABLE public.channels OWNER TO kotahitest; +ALTER TABLE public.channels OWNER TO kotahidev; -- --- Name: entities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: entities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.entities ( @@ -217,10 +217,10 @@ CREATE TABLE public.entities ( ); -ALTER TABLE public.entities OWNER TO kotahitest; +ALTER TABLE public.entities OWNER TO kotahidev; -- --- Name: files; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: files; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.files ( @@ -240,10 +240,10 @@ CREATE TABLE public.files ( ); -ALTER TABLE public.files OWNER TO kotahitest; +ALTER TABLE public.files OWNER TO kotahidev; -- --- Name: identities; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: identities; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.identities ( @@ -260,10 +260,10 @@ CREATE TABLE public.identities ( ); -ALTER TABLE public.identities OWNER TO kotahitest; +ALTER TABLE public.identities OWNER TO kotahidev; -- --- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: manuscripts; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.manuscripts ( @@ -283,10 +283,10 @@ CREATE TABLE public.manuscripts ( ); -ALTER TABLE public.manuscripts OWNER TO kotahitest; +ALTER TABLE public.manuscripts OWNER TO kotahidev; -- --- Name: messages; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: messages; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.messages ( @@ -299,10 +299,10 @@ CREATE TABLE public.messages ( ); -ALTER TABLE public.messages OWNER TO kotahitest; +ALTER TABLE public.messages OWNER TO kotahidev; -- --- Name: migrations; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: migrations; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.migrations ( @@ -311,10 +311,10 @@ CREATE TABLE public.migrations ( ); -ALTER TABLE public.migrations OWNER TO kotahitest; +ALTER TABLE public.migrations OWNER TO kotahidev; -- --- Name: review_comments; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: review_comments; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.review_comments ( @@ -329,10 +329,10 @@ CREATE TABLE public.review_comments ( ); -ALTER TABLE public.review_comments OWNER TO kotahitest; +ALTER TABLE public.review_comments OWNER TO kotahidev; -- --- Name: reviews; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: reviews; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.reviews ( @@ -347,10 +347,10 @@ CREATE TABLE public.reviews ( ); -ALTER TABLE public.reviews OWNER TO kotahitest; +ALTER TABLE public.reviews OWNER TO kotahidev; -- --- Name: team_members; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: team_members; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.team_members ( @@ -364,10 +364,10 @@ CREATE TABLE public.team_members ( ); -ALTER TABLE public.team_members OWNER TO kotahitest; +ALTER TABLE public.team_members OWNER TO kotahidev; -- --- Name: teams; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: teams; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.teams ( @@ -384,10 +384,10 @@ CREATE TABLE public.teams ( ); -ALTER TABLE public.teams OWNER TO kotahitest; +ALTER TABLE public.teams OWNER TO kotahidev; -- --- Name: users; Type: TABLE; Schema: public; Owner: kotahitest +-- Name: users; Type: TABLE; Schema: public; Owner: kotahidev -- CREATE TABLE public.users ( @@ -407,16 +407,16 @@ CREATE TABLE public.users ( ); -ALTER TABLE public.users OWNER TO kotahitest; +ALTER TABLE public.users OWNER TO kotahidev; -- --- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: archive; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: job; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- INSERT INTO pgboss.job (id, name, priority, data, state, retrylimit, retrycount, retrydelay, retrybackoff, startafter, startedon, singletonkey, singletonon, expirein, createdon, completedon, keepuntil, on_complete) VALUES ('876670c0-8195-11eb-815e-59df8a5d915a', '__pgboss__maintenance', 0, NULL, 'completed', 0, 0, 0, false, '2021-03-10 12:41:18.669507+01', '2021-03-10 12:41:18.675148+01', '__pgboss__maintenance', NULL, '00:15:00', '2021-03-10 12:41:18.669507+01', '2021-03-10 12:41:18.693727+01', '2021-03-10 12:49:18.669507+01', false); @@ -429,32 +429,32 @@ INSERT INTO pgboss.job (id, name, priority, data, state, retrylimit, retrycount, -- --- Data for Name: schedule; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: schedule; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- -- --- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahitest +-- Data for Name: version; Type: TABLE DATA; Schema: pgboss; Owner: kotahidev -- INSERT INTO pgboss.version (version, maintained_on, cron_on) VALUES (16, '2021-03-10 12:48:18.764191+01', '2021-03-10 12:48:06.965457+01'); -- --- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: aliases; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channel_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: channels; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.channels (id, manuscript_id, created, updated, topic, type) VALUES ('fbb752f5-fb46-4ab6-9896-bcf34a384c92', '06ea851c-619c-453e-a12e-6568da11252c', '2021-03-10 12:48:02.828+01', '2021-03-10 12:48:02.828+01', 'Manuscript discussion', 'all'); @@ -462,20 +462,20 @@ INSERT INTO public.channels (id, manuscript_id, created, updated, topic, type) V -- --- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: entities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: files; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.files (id, created, updated, label, file_type, filename, url, mime_type, size, type, manuscript_id, review_comment_id) VALUES ('81ffbef0-c77e-46dc-a86c-864f7f1f336c', '2021-03-10 12:48:21.069+01', '2021-03-10 12:48:21.069+01', NULL, 'supplementary', 'test-pdf.pdf', '/static/uploads/508239154500088a36827c250d0b83b7.pdf', 'application/pdf', 142400, 'file', '06ea851c-619c-453e-a12e-6568da11252c', NULL); -- --- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: identities; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.identities (id, user_id, created, updated, type, identifier, name, aff, oauth, is_default) VALUES ('d341a633-cdce-4a7f-a9ad-5afc03cd0dd1', '027afa6a-edbc-486e-bb31-71e12f8ea1c5', '2020-07-21 16:17:24.741+02', '2020-07-21 16:17:25.87+02', 'orcid', '0000-0002-0564-2016', 'Emily Clay', NULL, '{"accessToken": "079a1165-31e5-4b59-9a99-d80ff7a21ebf", "refreshToken": "ccadc737-defc-419e-823b-a9f3673848ba"}', true); @@ -488,20 +488,20 @@ INSERT INTO public.identities (id, user_id, created, updated, type, identifier, -- --- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: manuscripts; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.manuscripts (id, created, updated, parent_id, submitter_id, status, decision, authors, suggestions, meta, submission, published, type) VALUES ('06ea851c-619c-453e-a12e-6568da11252c', '2021-03-10 12:48:02.815+01', '2021-03-10 12:48:28.803+01', NULL, '027afa6a-edbc-486e-bb31-71e12f8ea1c5', 'submitted', NULL, NULL, NULL, '{"notes": [{"content": "", "notesType": "fundingAcknowledgement"}, {"content": "", "notesType": "specialInstructions"}], "title": "My URL submission"}', '{"irb": "yes", "name": "Emily Clay", "cover": "This is my cover letter", "links": [{"url": "https://doi.org/10.6084/m9.figshare.913521.v1"}, {"url": "https://github.com/jure/mathtype_to_mathml"}], "ethics": "This is my ethics statement", "contact": "emily@example.com", "methods": ["Functional MRI", "Optical Imaging"], "datacode": "This is my data and code availability statement", "humanMRI": "3T", "keywords": "some, keywords", "packages": ["SPM", "FSL"], "subjects": "patients", "suggested": "Erica James, Matthew Matretzky", "objectType": "software", "affiliation": "Example University, England", "otherMethods": "Erica James, Matthew Matretzky", "humanMRIother": "7T", "animal_research_approval": "yes"}', NULL, 'Manuscript'); -- --- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: messages; Type: TABLE DATA; Schema: public; Owner: kotahidev -- -- --- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: migrations; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.migrations (id, run_at) VALUES ('1524494862-entities.sql', '2020-08-16 22:36:46.642584+02'); @@ -522,7 +522,7 @@ INSERT INTO public.migrations (id, run_at) VALUES ('1596838897-files.sql', '2020 -- --- Data for Name: review_comments; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: review_comments; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.review_comments (id, created, updated, review_id, user_id, content, comment_type, type) VALUES ('352a2a97-39b9-4554-bc90-24d236918756', '2021-03-10 12:48:37.862+01', '2021-03-10 12:48:37.862+01', '8a7a09b9-b744-4bc9-afd4-c481e403524c', NULL, '<p>Great paper, congratulations! Gale Davis</p>', 'review', 'ReviewComment'); @@ -534,7 +534,7 @@ INSERT INTO public.review_comments (id, created, updated, review_id, user_id, co -- --- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: reviews; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.reviews (id, created, updated, recommendation, is_decision, user_id, manuscript_id, type) VALUES ('8a7a09b9-b744-4bc9-afd4-c481e403524c', '2021-03-10 12:48:36.506+01', '2021-03-10 12:48:38.838+01', 'accepted', false, '40e3d054-9ac8-4c0f-84ed-e3c6307662cd', '06ea851c-619c-453e-a12e-6568da11252c', 'Review'); @@ -543,7 +543,7 @@ INSERT INTO public.reviews (id, created, updated, recommendation, is_decision, u -- --- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: team_members; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.team_members (id, created, updated, status, team_id, user_id, alias_id) VALUES ('df69d471-bead-42b6-a8b5-d1bff0a36040', '2021-03-10 12:48:02.832+01', '2021-03-10 12:48:02.832+01', NULL, 'dccbd509-505f-4ad6-8ceb-8a42b62c917b', '027afa6a-edbc-486e-bb31-71e12f8ea1c5', NULL); @@ -554,7 +554,7 @@ INSERT INTO public.team_members (id, created, updated, status, team_id, user_id, -- --- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: teams; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.teams (id, created, updated, name, role, members, owners, global, type, manuscript_id) VALUES ('dccbd509-505f-4ad6-8ceb-8a42b62c917b', '2021-03-10 12:48:02.828+01', '2021-03-10 12:48:02.828+01', 'Author', 'author', NULL, NULL, NULL, 'team', '06ea851c-619c-453e-a12e-6568da11252c'); @@ -563,7 +563,7 @@ INSERT INTO public.teams (id, created, updated, name, role, members, owners, glo -- --- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahitest +-- Data for Name: users; Type: TABLE DATA; Schema: public; Owner: kotahidev -- INSERT INTO public.users (id, created, updated, admin, email, username, password_hash, teams, password_reset_token, password_reset_timestamp, type, profile_picture, online) VALUES ('231717dd-ba09-43d4-ac98-9d5542b27a0c', '2020-07-22 14:18:36.597+02', '2020-07-24 16:43:54.939+02', NULL, NULL, '000000032536230X', NULL, NULL, NULL, NULL, 'user', '/static/profiles/testuser5.jpg', false); @@ -576,7 +576,7 @@ INSERT INTO public.users (id, created, updated, admin, email, username, password -- --- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: job job_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.job @@ -584,7 +584,7 @@ ALTER TABLE ONLY pgboss.job -- --- Name: schedule schedule_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: schedule schedule_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.schedule @@ -592,7 +592,7 @@ ALTER TABLE ONLY pgboss.schedule -- --- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahitest +-- Name: version version_pkey; Type: CONSTRAINT; Schema: pgboss; Owner: kotahidev -- ALTER TABLE ONLY pgboss.version @@ -600,7 +600,7 @@ ALTER TABLE ONLY pgboss.version -- --- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: aliases aliases_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.aliases @@ -608,7 +608,7 @@ ALTER TABLE ONLY public.aliases -- --- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -616,7 +616,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -624,7 +624,7 @@ ALTER TABLE ONLY public.channels -- --- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: entities entities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.entities @@ -632,7 +632,7 @@ ALTER TABLE ONLY public.entities -- --- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -640,7 +640,7 @@ ALTER TABLE ONLY public.files -- --- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities identities_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -648,7 +648,7 @@ ALTER TABLE ONLY public.identities -- --- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -656,7 +656,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -664,7 +664,7 @@ ALTER TABLE ONLY public.messages -- --- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: migrations migrations_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.migrations @@ -672,7 +672,7 @@ ALTER TABLE ONLY public.migrations -- --- Name: review_comments review_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -680,7 +680,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: reviews reviews_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.reviews @@ -688,7 +688,7 @@ ALTER TABLE ONLY public.reviews -- --- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -696,7 +696,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: teams teams_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.teams @@ -704,7 +704,7 @@ ALTER TABLE ONLY public.teams -- --- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_email_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -712,7 +712,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_pkey; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -720,7 +720,7 @@ ALTER TABLE ONLY public.users -- --- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: users users_username_key; Type: CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.users @@ -728,77 +728,77 @@ ALTER TABLE ONLY public.users -- --- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_archivedon_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_archivedon_idx ON pgboss.archive USING btree (archivedon); -- --- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: archive_id_idx; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX archive_id_idx ON pgboss.archive USING btree (id); -- --- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_name; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE INDEX job_name ON pgboss.job USING btree (name text_pattern_ops); -- --- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkey; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkey ON pgboss.job USING btree (name, singletonkey) WHERE ((state < 'completed'::pgboss.job_state) AND (singletonon IS NULL)); -- --- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonkeyon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonkeyon ON pgboss.job USING btree (name, singletonon, singletonkey) WHERE (state < 'expired'::pgboss.job_state); -- --- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahitest +-- Name: job_singletonon; Type: INDEX; Schema: pgboss; Owner: kotahidev -- CREATE UNIQUE INDEX job_singletonon ON pgboss.job USING btree (name, singletonon) WHERE ((state < 'expired'::pgboss.job_state) AND (singletonkey IS NULL)); -- --- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: channel_members_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX channel_members_idx ON public.channel_members USING btree (user_id, channel_id); -- --- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: is_default_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE UNIQUE INDEX is_default_idx ON public.identities USING btree (is_default, user_id) WHERE (is_default IS TRUE); -- --- Name: team_members_team_id_user_id_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: team_members_team_id_user_id_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX team_members_team_id_user_id_idx ON public.team_members USING btree (team_id, user_id); -- --- Name: teams_manuscript_id_idx; Type: INDEX; Schema: public; Owner: kotahitest +-- Name: teams_manuscript_id_idx; Type: INDEX; Schema: public; Owner: kotahidev -- CREATE INDEX teams_manuscript_id_idx ON public.teams USING btree (manuscript_id); -- --- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -806,7 +806,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channel_members channel_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channel_members @@ -814,7 +814,7 @@ ALTER TABLE ONLY public.channel_members -- --- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: channels channels_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.channels @@ -822,7 +822,7 @@ ALTER TABLE ONLY public.channels -- --- Name: files files_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -830,7 +830,7 @@ ALTER TABLE ONLY public.files -- --- Name: files files_review_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: files files_review_comment_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.files @@ -838,7 +838,7 @@ ALTER TABLE ONLY public.files -- --- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: manuscripts manuscripts_submitter_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.manuscripts @@ -846,7 +846,7 @@ ALTER TABLE ONLY public.manuscripts -- --- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_channel_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -854,7 +854,7 @@ ALTER TABLE ONLY public.messages -- --- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: messages messages_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.messages @@ -862,7 +862,7 @@ ALTER TABLE ONLY public.messages -- --- Name: review_comments review_comments_review_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_review_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -870,7 +870,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: review_comments review_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: review_comments review_comments_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.review_comments @@ -878,7 +878,7 @@ ALTER TABLE ONLY public.review_comments -- --- Name: reviews reviews_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: reviews reviews_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.reviews @@ -886,7 +886,7 @@ ALTER TABLE ONLY public.reviews -- --- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: identities sidentities_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.identities @@ -894,7 +894,7 @@ ALTER TABLE ONLY public.identities -- --- Name: team_members team_members_alias_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_alias_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -902,7 +902,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_team_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -910,7 +910,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: team_members team_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: team_members team_members_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.team_members @@ -918,7 +918,7 @@ ALTER TABLE ONLY public.team_members -- --- Name: teams teams_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahitest +-- Name: teams teams_manuscript_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: kotahidev -- ALTER TABLE ONLY public.teams diff --git a/package.json b/package.json index 487eefce2f3d70312b4a369d762b0f2cf4faebf1..52d8ec3877a113dec1d1a702ce2681e2333d79a9 100644 --- a/package.json +++ b/package.json @@ -177,6 +177,7 @@ "css-loader": "0.28.11", "cypress": "^5.3.0", "cypress-file-upload": "^4.1.1", + "dotenv-cli": "^4.0.0", "extract-text-webpack-plugin": "3.0.2", "file-loader": "1.1.11", "html-webpack-plugin": "3.2.0", diff --git a/scripts/test.sql b/scripts/test.sql index 4fba30b777f27740906c38076e336241435ebcac..6a25ff3e7be30f1f5fb742ed843bf7b5c11e0b24 100644 --- a/scripts/test.sql +++ b/scripts/test.sql @@ -1,2 +1,2 @@ CREATE DATABASE test; - +CREATE EXTENSION IF NOT EXISTS pgcrypto; diff --git a/server/app.js b/server/app.js index 8a76aa0af6c1f67c5a104c492d8e052a666aa728..58ac0761d92ccc8f651f21f9bc8061ac839f4bff 100644 --- a/server/app.js +++ b/server/app.js @@ -1,7 +1,8 @@ +/* eslint-disable global-require, no-param-reassign */ +// The global requires here are used to avoid cyclical dependencies +// The param reassigns are intentional, used as a way to set Express routes const path = require('path') - -const dotenvPath = path.resolve(`.env.${process.env.NODE_ENV || 'development'}`) -require('dotenv').config({ path: dotenvPath }) +require('dotenv').config() const config = require('config') const express = require('express') @@ -10,21 +11,15 @@ const helmet = require('helmet') const cookieParser = require('cookie-parser') const bodyParser = require('body-parser') const passport = require('passport') -const gqlApi = require('./graphql') -// const index = require('./routes/index') -// const api = require('./routes/api') const logger = require('@pubsweet/logger') -// const sse = require('pubsweet-sse') - -// const _ = require('lodash/fp') const STATUS = require('http-status-codes') const registerComponents = require('pubsweet-server/src/register-components') // TODO: Fix import // Wax Collab requirements const WebSocket = require('ws') -const wsUtils = require('./wax-collab/server-util.js') -// const cookie = require('cookie') const EventEmitter = require('events') +const wsUtils = require('./wax-collab/server-util.js') +const gqlApi = require('./graphql') const configureApp = app => { const models = require('@pubsweet/models') @@ -35,6 +30,7 @@ const configureApp = app => { app.use(bodyParser.json({ limit: '50mb' })) morgan.token('graphql', ({ body }, res, type) => { if (!body.operationName) return '' + switch (type) { case 'query': return body.query.replace(/\s+/g, ' ') @@ -66,6 +62,7 @@ const configureApp = app => { ), ) } + // Passport strategies app.use(passport.initialize()) const authentication = require('pubsweet-server/src/authentication') @@ -103,13 +100,20 @@ const configureApp = app => { if (err.name === 'ValidationError') { return res.status(STATUS.BAD_REQUEST).json({ message: err.message }) - } else if (err.name === 'ConflictError') { + } + + if (err.name === 'ConflictError') { return res.status(STATUS.CONFLICT).json({ message: err.message }) - } else if (err.name === 'AuthorizationError') { + } + + if (err.name === 'AuthorizationError') { return res.status(err.status).json({ message: err.message }) - } else if (err.name === 'AuthenticationError') { + } + + if (err.name === 'AuthenticationError') { return res.status(STATUS.UNAUTHORIZED).json({ message: err.message }) } + return res .status(err.status || STATUS.INTERNAL_SERVER_ERROR) .json({ message: err.message }) @@ -133,10 +137,12 @@ const configureApp = app => { serverProxy.emit('upgrade', request, socket, head, ...rest) } else { let user = null + if (request.headers.cookie) { // const cookies = cookie.parse(request.headers.cookie) // const user = cookies.user_identifier } + // TODO: Do real auth for Wax-collab user = 'test' // shortcut @@ -145,6 +151,7 @@ const configureApp = app => { socket.destroy() return } + wss.handleUpgrade(request, socket, head, ws => { wss.emit('connection', ws, request) }) diff --git a/webpack/webpack.config.js b/webpack/webpack.config.js index 709270564a74ff784da9e5e649f42f47c7c8c69a..4b471dce06410316851ceb624abfabdd49150611 100644 --- a/webpack/webpack.config.js +++ b/webpack/webpack.config.js @@ -1,9 +1,7 @@ const path = require('path') const fs = require('fs-extra') const { pick } = require('lodash') -// Loads environment variables from e.g. .env.development, same as server/app.js -const dotenvPath = path.resolve(`.env.${process.env.NODE_ENV || 'development'}`) -require('dotenv').config({ path: dotenvPath }) +require('dotenv').config() const config = require('config') const rules = require('./common-rules') diff --git a/yarn.lock b/yarn.lock index 31e1cab7cadcd5b2343dde485f37ec2997f1d477..5dd3a4b346304bcaf18fe108f15380d37c4ecf60 100644 --- a/yarn.lock +++ b/yarn.lock @@ -8239,7 +8239,7 @@ cross-spawn@^6.0.0, cross-spawn@^6.0.5: shebang-command "^1.2.0" which "^1.2.9" -cross-spawn@^7.0.0: +cross-spawn@^7.0.0, cross-spawn@^7.0.1: version "7.0.3" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== @@ -9177,6 +9177,16 @@ dot-prop@^5.2.0: dependencies: is-obj "^2.0.0" +dotenv-cli@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/dotenv-cli/-/dotenv-cli-4.0.0.tgz#3cdd68b87ccd63c78dbfa72aab2f639bbeba5f4b" + integrity sha512-ByKEec+ashePEXthZaA1fif9XDtcaRnkN7eGdBDx3HHRjwZ/rA1go83Cbs4yRrx3JshsCf96FjAyIA2M672+CQ== + dependencies: + cross-spawn "^7.0.1" + dotenv "^8.1.0" + dotenv-expand "^5.1.0" + minimist "^1.1.3" + dotenv-defaults@^1.0.2: version "1.1.1" resolved "https://registry.yarnpkg.com/dotenv-defaults/-/dotenv-defaults-1.1.1.tgz#032c024f4b5906d9990eb06d722dc74cc60ec1bd" @@ -9206,7 +9216,7 @@ dotenv@^6.2.0: resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-6.2.0.tgz#941c0410535d942c8becf28d3f357dbd9d476064" integrity sha512-HygQCKUBSFl8wKQZBSemMywRWcEDNidvNbjGVyZu3nbZ8qq9ubiPoGLMdRDpfSrpkkm9BXYFkpKxxFX38o/76w== -dotenv@^8.0.0, dotenv@^8.2.0: +dotenv@^8.0.0, dotenv@^8.1.0, dotenv@^8.2.0: version "8.2.0" resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-8.2.0.tgz#97e619259ada750eea3e4ea3e26bceea5424b16a" integrity sha512-8sJ78ElpbDJBHNeBzUbUVLsqKdccaa/BXF1uPTw3GrvQTBgrQrtObr2mUrE38vzYd8cEv+m/JBfDLioYcfXoaw==