|
2 | 2 | -- PostgreSQL database dump
|
3 | 3 | --
|
4 | 4 |
|
5 |
| --- Dumped from database version 10.0 |
6 |
| --- Dumped by pg_dump version 10.0 |
| 5 | +-- Dumped from database version 9.5.10 |
| 6 | +-- Dumped by pg_dump version 10.1 |
7 | 7 |
|
8 | 8 | SET statement_timeout = 0;
|
9 | 9 | SET lock_timeout = 0;
|
@@ -526,6 +526,41 @@ CREATE SEQUENCE github_users_id_seq
|
526 | 526 | ALTER SEQUENCE github_users_id_seq OWNED BY github_users.id;
|
527 | 527 |
|
528 | 528 |
|
| 529 | +-- |
| 530 | +-- Name: messages; Type: TABLE; Schema: public; Owner: - |
| 531 | +-- |
| 532 | + |
| 533 | +CREATE TABLE messages ( |
| 534 | + id bigint NOT NULL, |
| 535 | + body text, |
| 536 | + initiated_by character varying(255), |
| 537 | + subject text, |
| 538 | + author_id bigint, |
| 539 | + project_id bigint, |
| 540 | + inserted_at timestamp without time zone NOT NULL, |
| 541 | + updated_at timestamp without time zone NOT NULL |
| 542 | +); |
| 543 | + |
| 544 | + |
| 545 | +-- |
| 546 | +-- Name: messages_id_seq; Type: SEQUENCE; Schema: public; Owner: - |
| 547 | +-- |
| 548 | + |
| 549 | +CREATE SEQUENCE messages_id_seq |
| 550 | + START WITH 1 |
| 551 | + INCREMENT BY 1 |
| 552 | + NO MINVALUE |
| 553 | + NO MAXVALUE |
| 554 | + CACHE 1; |
| 555 | + |
| 556 | + |
| 557 | +-- |
| 558 | +-- Name: messages_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: - |
| 559 | +-- |
| 560 | + |
| 561 | +ALTER SEQUENCE messages_id_seq OWNED BY messages.id; |
| 562 | + |
| 563 | + |
529 | 564 | --
|
530 | 565 | -- Name: organization_github_app_installations; Type: TABLE; Schema: public; Owner: -
|
531 | 566 | --
|
@@ -1854,6 +1889,13 @@ ALTER TABLE ONLY github_repos ALTER COLUMN id SET DEFAULT nextval('github_repos_
|
1854 | 1889 | ALTER TABLE ONLY github_users ALTER COLUMN id SET DEFAULT nextval('github_users_id_seq'::regclass);
|
1855 | 1890 |
|
1856 | 1891 |
|
| 1892 | +-- |
| 1893 | +-- Name: messages id; Type: DEFAULT; Schema: public; Owner: - |
| 1894 | +-- |
| 1895 | + |
| 1896 | +ALTER TABLE ONLY messages ALTER COLUMN id SET DEFAULT nextval('messages_id_seq'::regclass); |
| 1897 | + |
| 1898 | + |
1857 | 1899 | --
|
1858 | 1900 | -- Name: organization_github_app_installations id; Type: DEFAULT; Schema: public; Owner: -
|
1859 | 1901 | --
|
@@ -2174,6 +2216,14 @@ ALTER TABLE ONLY github_users
|
2174 | 2216 | ADD CONSTRAINT github_users_pkey PRIMARY KEY (id);
|
2175 | 2217 |
|
2176 | 2218 |
|
| 2219 | +-- |
| 2220 | +-- Name: messages messages_pkey; Type: CONSTRAINT; Schema: public; Owner: - |
| 2221 | +-- |
| 2222 | + |
| 2223 | +ALTER TABLE ONLY messages |
| 2224 | + ADD CONSTRAINT messages_pkey PRIMARY KEY (id); |
| 2225 | + |
| 2226 | + |
2177 | 2227 | --
|
2178 | 2228 | -- Name: organization_github_app_installations organization_github_app_installations_pkey; Type: CONSTRAINT; Schema: public; Owner: -
|
2179 | 2229 | --
|
@@ -2642,6 +2692,27 @@ CREATE UNIQUE INDEX index_projects_on_user_id_skill_id ON user_skills USING btre
|
2642 | 2692 | CREATE UNIQUE INDEX index_skills_on_title ON skills USING btree (lower((title)::text));
|
2643 | 2693 |
|
2644 | 2694 |
|
| 2695 | +-- |
| 2696 | +-- Name: messages_author_id_index; Type: INDEX; Schema: public; Owner: - |
| 2697 | +-- |
| 2698 | + |
| 2699 | +CREATE INDEX messages_author_id_index ON messages USING btree (author_id); |
| 2700 | + |
| 2701 | + |
| 2702 | +-- |
| 2703 | +-- Name: messages_initiated_by_index; Type: INDEX; Schema: public; Owner: - |
| 2704 | +-- |
| 2705 | + |
| 2706 | +CREATE INDEX messages_initiated_by_index ON messages USING btree (initiated_by); |
| 2707 | + |
| 2708 | + |
| 2709 | +-- |
| 2710 | +-- Name: messages_project_id_index; Type: INDEX; Schema: public; Owner: - |
| 2711 | +-- |
| 2712 | + |
| 2713 | +CREATE INDEX messages_project_id_index ON messages USING btree (project_id); |
| 2714 | + |
| 2715 | + |
2645 | 2716 | --
|
2646 | 2717 | -- Name: organization_github_app_installations_github_app_installation_i; Type: INDEX; Schema: public; Owner: -
|
2647 | 2718 | --
|
@@ -3494,6 +3565,22 @@ ALTER TABLE ONLY github_repos
|
3494 | 3565 | ADD CONSTRAINT github_repos_project_id_fkey FOREIGN KEY (project_id) REFERENCES projects(id);
|
3495 | 3566 |
|
3496 | 3567 |
|
| 3568 | +-- |
| 3569 | +-- Name: messages messages_author_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - |
| 3570 | +-- |
| 3571 | + |
| 3572 | +ALTER TABLE ONLY messages |
| 3573 | + ADD CONSTRAINT messages_author_id_fkey FOREIGN KEY (author_id) REFERENCES users(id); |
| 3574 | + |
| 3575 | + |
| 3576 | +-- |
| 3577 | +-- Name: messages messages_project_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: - |
| 3578 | +-- |
| 3579 | + |
| 3580 | +ALTER TABLE ONLY messages |
| 3581 | + ADD CONSTRAINT messages_project_id_fkey FOREIGN KEY (project_id) REFERENCES projects(id); |
| 3582 | + |
| 3583 | + |
3497 | 3584 | --
|
3498 | 3585 | -- Name: organization_github_app_installations organization_github_app_installations_github_app_installation_i; Type: FK CONSTRAINT; Schema: public; Owner: -
|
3499 | 3586 | --
|
@@ -3906,5 +3993,5 @@ ALTER TABLE ONLY users
|
3906 | 3993 | -- PostgreSQL database dump complete
|
3907 | 3994 | --
|
3908 | 3995 |
|
3909 |
| -INSERT INTO "schema_migrations" (version) VALUES (20160723215749), (20160804000000), (20160804001111), (20160805132301), (20160805203929), (20160808143454), (20160809214736), (20160810124357), (20160815125009), (20160815143002), (20160816020347), (20160816034021), (20160817220118), (20160818000944), (20160818132546), (20160820113856), (20160820164905), (20160822002438), (20160822004056), (20160822011624), (20160822020401), (20160822044612), (20160830081224), (20160830224802), (20160911233738), (20160912002705), (20160912145957), (20160918003206), (20160928232404), (20161003185918), (20161019090945), (20161019110737), (20161020144622), (20161021131026), (20161031001615), (20161121005339), (20161121014050), (20161121043941), (20161121045709), (20161122015942), (20161123081114), (20161123150943), (20161124085742), (20161125200620), (20161126045705), (20161127054559), (20161205024856), (20161207112519), (20161209192504), (20161212005641), (20161214005935), (20161215052051), (20161216051447), (20161218005913), (20161219160401), (20161219163909), (20161220141753), (20161221085759), (20161226213600), (20161231063614), (20170102130055), (20170102181053), (20170104113708), (20170104212623), (20170104235423), (20170106013143), (20170115035159), (20170115230549), (20170121014100), (20170131234029), (20170201014901), (20170201025454), (20170201035458), (20170201183258), (20170220032224), (20170224233516), (20170226050552), (20170228085250), (20170308214128), (20170308220713), (20170308222552), (20170313130611), (20170318032449), (20170318082740), (20170324194827), (20170424215355), (20170501225441), (20170505224222), (20170526095401), (20170602000208), (20170622205732), (20170626231059), (20170628092119), (20170628213609), (20170629183404), (20170630140136), (20170706132431), (20170707213648), (20170711122252), (20170717092127), (20170725060612), (20170727052644), (20170731130121), (20170814131722), (20170913114958), (20170921014405), (20170925214512), (20170925230419), (20170926134646), (20170927100300), (20170928234412), (20171003134956), (20171003225853), (20171006063358), (20171006161407), (20171012215106), (20171012221231), (20171016125229), (20171016125516), (20171016223356), (20171016235656), (20171017235433), (20171019191035), (20171025184225), (20171026010933), (20171027061833), (20171028011642), (20171028173508), (20171030182857), (20171031232023), (20171031234356), (20171101023309), (20171104013543), (20171106045740), (20171106050209), (20171106103153), (20171106200036), (20171109231538), (20171110001134), (20171114010851), (20171114033357), (20171114225214), (20171114225713), (20171114232534), (20171115201624), (20171115225358), (20171119004204), (20171121075226), (20171121144138), (20171123065902), (20171127215847), (20171201073818); |
| 3996 | +INSERT INTO "schema_migrations" (version) VALUES (20160723215749), (20160804000000), (20160804001111), (20160805132301), (20160805203929), (20160808143454), (20160809214736), (20160810124357), (20160815125009), (20160815143002), (20160816020347), (20160816034021), (20160817220118), (20160818000944), (20160818132546), (20160820113856), (20160820164905), (20160822002438), (20160822004056), (20160822011624), (20160822020401), (20160822044612), (20160830081224), (20160830224802), (20160911233738), (20160912002705), (20160912145957), (20160918003206), (20160928232404), (20161003185918), (20161019090945), (20161019110737), (20161020144622), (20161021131026), (20161031001615), (20161121005339), (20161121014050), (20161121043941), (20161121045709), (20161122015942), (20161123081114), (20161123150943), (20161124085742), (20161125200620), (20161126045705), (20161127054559), (20161205024856), (20161207112519), (20161209192504), (20161212005641), (20161214005935), (20161215052051), (20161216051447), (20161218005913), (20161219160401), (20161219163909), (20161220141753), (20161221085759), (20161226213600), (20161231063614), (20170102130055), (20170102181053), (20170104113708), (20170104212623), (20170104235423), (20170106013143), (20170115035159), (20170115230549), (20170121014100), (20170131234029), (20170201014901), (20170201025454), (20170201035458), (20170201183258), (20170220032224), (20170224233516), (20170226050552), (20170228085250), (20170308214128), (20170308220713), (20170308222552), (20170313130611), (20170318032449), (20170318082740), (20170324194827), (20170424215355), (20170501225441), (20170505224222), (20170526095401), (20170602000208), (20170622205732), (20170626231059), (20170628092119), (20170628213609), (20170629183404), (20170630140136), (20170706132431), (20170707213648), (20170711122252), (20170717092127), (20170725060612), (20170727052644), (20170731130121), (20170814131722), (20170913114958), (20170921014405), (20170925214512), (20170925230419), (20170926134646), (20170927100300), (20170928234412), (20171003134956), (20171003225853), (20171006063358), (20171006161407), (20171012215106), (20171012221231), (20171016125229), (20171016125516), (20171016223356), (20171016235656), (20171017235433), (20171019191035), (20171025184225), (20171026010933), (20171027061833), (20171028011642), (20171028173508), (20171030182857), (20171031232023), (20171031234356), (20171101023309), (20171104013543), (20171106045740), (20171106050209), (20171106103153), (20171106200036), (20171109231538), (20171110001134), (20171114010851), (20171114033357), (20171114225214), (20171114225713), (20171114232534), (20171115201624), (20171115225358), (20171119004204), (20171121075226), (20171121144138), (20171123065902), (20171127215847), (20171201073818), (20171205161052); |
3910 | 3997 |
|
0 commit comments