generated from vjik/package-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
328 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
suite_namespace: Vjik\Codeception\DatabasePopulator\Tests\Integration | ||
actor: IntegrationTester | ||
modules: | ||
enabled: | ||
- Db: | ||
dsn: 'pgsql:host=%DB_HOST%;dbname=%DB_NAME%' | ||
user: '%DB_USERNAME%' | ||
password: '%DB_PASSWORD%' | ||
- Vjik\Codeception\DatabasePopulator\Module: | ||
dumpsPath: 'tests/_data/dumps/pgsql' | ||
rowsPath: 'tests/_data/rows' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
suite_namespace: Vjik\Codeception\DatabasePopulator\Tests\Preload | ||
actor: PreloadTester | ||
modules: | ||
enabled: | ||
- Db: | ||
dsn: 'mysql:host=%DB_HOST%;dbname=%DB_NAME%' | ||
user: '%DB_USERNAME%' | ||
password: '%DB_PASSWORD%' | ||
- Vjik\Codeception\DatabasePopulator\Module: | ||
dumpsPath: 'tests/_data/dumps/pgsql' | ||
rowsPath: 'tests/_data/rows' | ||
preloadDump: 'blog' | ||
preloadRows: 'authors' |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
-- | ||
-- PostgreSQL database dump | ||
-- | ||
|
||
-- Dumped from database version 16.3 (Debian 16.3-1.pgdg120+1) | ||
-- Dumped by pg_dump version 16.3 (Debian 16.3-1.pgdg120+1) | ||
|
||
SET statement_timeout = 0; | ||
SET lock_timeout = 0; | ||
SET idle_in_transaction_session_timeout = 0; | ||
SET client_encoding = 'UTF8'; | ||
SET standard_conforming_strings = on; | ||
SELECT pg_catalog.set_config('search_path', '', false); | ||
SET check_function_bodies = false; | ||
SET xmloption = content; | ||
SET client_min_messages = warning; | ||
SET row_security = off; | ||
|
||
SET default_tablespace = ''; | ||
|
||
SET default_table_access_method = heap; | ||
|
||
-- | ||
-- Name: author; Type: TABLE; Schema: public; Owner: root | ||
-- | ||
|
||
CREATE TABLE public.author ( | ||
id bigint NOT NULL, | ||
name character varying(255) | ||
); | ||
|
||
|
||
ALTER TABLE public.author OWNER TO root; | ||
|
||
-- | ||
-- Name: id_id_seq; Type: SEQUENCE; Schema: public; Owner: root | ||
-- | ||
|
||
CREATE SEQUENCE public.id_id_seq | ||
START WITH 1 | ||
INCREMENT BY 1 | ||
NO MINVALUE | ||
NO MAXVALUE | ||
CACHE 1; | ||
|
||
|
||
ALTER SEQUENCE public.id_id_seq OWNER TO root; | ||
|
||
-- | ||
-- Name: id_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root | ||
-- | ||
|
||
ALTER SEQUENCE public.id_id_seq OWNED BY public.author.id; | ||
|
||
|
||
-- | ||
-- Name: post; Type: TABLE; Schema: public; Owner: root | ||
-- | ||
|
||
CREATE TABLE public.post ( | ||
id bigint NOT NULL, | ||
author_id bigint NOT NULL, | ||
name character varying(255) NOT NULL, | ||
body text NOT NULL | ||
); | ||
|
||
|
||
ALTER TABLE public.post OWNER TO root; | ||
|
||
-- | ||
-- Name: post_id_seq; Type: SEQUENCE; Schema: public; Owner: root | ||
-- | ||
|
||
CREATE SEQUENCE public.post_id_seq | ||
START WITH 1 | ||
INCREMENT BY 1 | ||
NO MINVALUE | ||
NO MAXVALUE | ||
CACHE 1; | ||
|
||
|
||
ALTER SEQUENCE public.post_id_seq OWNER TO root; | ||
|
||
-- | ||
-- Name: post_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: root | ||
-- | ||
|
||
ALTER SEQUENCE public.post_id_seq OWNED BY public.post.id; | ||
|
||
|
||
-- | ||
-- Name: author id; Type: DEFAULT; Schema: public; Owner: root | ||
-- | ||
|
||
ALTER TABLE ONLY public.author ALTER COLUMN id SET DEFAULT nextval('public.id_id_seq'::regclass); | ||
|
||
|
||
-- | ||
-- Name: post id; Type: DEFAULT; Schema: public; Owner: root | ||
-- | ||
|
||
ALTER TABLE ONLY public.post ALTER COLUMN id SET DEFAULT nextval('public.post_id_seq'::regclass); | ||
|
||
|
||
-- | ||
-- Data for Name: author; Type: TABLE DATA; Schema: public; Owner: root | ||
-- | ||
|
||
COPY public.author (id, name) FROM stdin; | ||
\. | ||
|
||
|
||
-- | ||
-- Data for Name: post; Type: TABLE DATA; Schema: public; Owner: root | ||
-- | ||
|
||
COPY public.post (id, author_id, name, body) FROM stdin; | ||
\. | ||
|
||
|
||
-- | ||
-- Name: id_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root | ||
-- | ||
|
||
SELECT pg_catalog.setval('public.id_id_seq', 1, false); | ||
|
||
|
||
-- | ||
-- Name: post_id_seq; Type: SEQUENCE SET; Schema: public; Owner: root | ||
-- | ||
|
||
SELECT pg_catalog.setval('public.post_id_seq', 1, false); | ||
|
||
|
||
-- | ||
-- Name: author id_pk; Type: CONSTRAINT; Schema: public; Owner: root | ||
-- | ||
|
||
ALTER TABLE ONLY public.author | ||
ADD CONSTRAINT id_pk PRIMARY KEY (id); | ||
|
||
|
||
-- | ||
-- Name: post post_pk; Type: CONSTRAINT; Schema: public; Owner: root | ||
-- | ||
|
||
ALTER TABLE ONLY public.post | ||
ADD CONSTRAINT post_pk PRIMARY KEY (id); | ||
|
||
|
||
-- | ||
-- Name: post post_author_id_fk; Type: FK CONSTRAINT; Schema: public; Owner: root | ||
-- | ||
|
||
ALTER TABLE ONLY public.post | ||
ADD CONSTRAINT post_author_id_fk FOREIGN KEY (author_id) REFERENCES public.author(id); | ||
|
||
|
||
-- | ||
-- PostgreSQL database dump complete | ||
-- | ||
|
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.