added static php-crud-api
This commit is contained in:
26
seatmap-webapi/tests/fixtures/blog_pgsql.sql
vendored
26
seatmap-webapi/tests/fixtures/blog_pgsql.sql
vendored
@@ -127,7 +127,7 @@ CREATE TABLE events (
|
||||
-- Name: tag_usage; Type: VIEW; Schema: public; Owner: postgres; Tablespace:
|
||||
--
|
||||
|
||||
CREATE VIEW "tag_usage" AS select "tags"."id" as "id", "name", count("name") AS "count" from "tags", "post_tags" where "tags"."id" = "post_tags"."tag_id" group by "tags"."id", "name" order by "count" desc, "name";
|
||||
CREATE VIEW "tag_usage" AS select "name", count("name") AS "count" from "tags", "post_tags" where "tags"."id" = "post_tags"."tag_id" group by "name" order by "count" desc, "name";
|
||||
|
||||
--
|
||||
-- Name: products; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
|
||||
@@ -162,8 +162,7 @@ CREATE TABLE "kunsthåndværk" (
|
||||
id character varying(36) NOT NULL,
|
||||
"Umlauts ä_ö_ü-COUNT" integer NOT NULL,
|
||||
user_id integer NOT NULL,
|
||||
invisible character varying(36),
|
||||
invisible_id character varying(36)
|
||||
invisible character varying(36)
|
||||
);
|
||||
|
||||
--
|
||||
@@ -277,9 +276,9 @@ INSERT INTO "barcodes" ("product_id", "hex", "bin", "ip_address") VALUES
|
||||
-- Data for Name: kunsthåndværk; Type: TABLE DATA; Schema: public; Owner: postgres
|
||||
--
|
||||
|
||||
INSERT INTO "kunsthåndværk" ("id", "Umlauts ä_ö_ü-COUNT", "user_id", "invisible", "invisible_id") VALUES
|
||||
('e42c77c6-06a4-4502-816c-d112c7142e6d', 1, 1, NULL, 'e42c77c6-06a4-4502-816c-d112c7142e6d'),
|
||||
('e31ecfe6-591f-4660-9fbd-1a232083037f', 2, 2, NULL, 'e42c77c6-06a4-4502-816c-d112c7142e6d');
|
||||
INSERT INTO "kunsthåndværk" ("id", "Umlauts ä_ö_ü-COUNT", "user_id", "invisible") VALUES
|
||||
('e42c77c6-06a4-4502-816c-d112c7142e6d', 1, 1, NULL),
|
||||
('e31ecfe6-591f-4660-9fbd-1a232083037f', 2, 2, NULL);
|
||||
|
||||
--
|
||||
-- Data for Name: invisibles; Type: TABLE DATA; Schema: public; Owner: postgres
|
||||
@@ -457,13 +456,6 @@ CREATE INDEX "kunsthåndværk_Umlauts ä_ö_ü-COUNT_idx" ON "kunsthåndværk" U
|
||||
CREATE INDEX "kunsthåndværk_user_id_idx" ON "kunsthåndværk" USING btree (user_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: kunsthåndværk_invisible_id_idx; Type: INDEX; Schema: public; Owner: postgres; Tablespace:
|
||||
--
|
||||
|
||||
CREATE INDEX "kunsthåndværk_invisible_id_idx" ON "kunsthåndværk" USING btree (invisible_id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: comments_post_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
|
||||
--
|
||||
@@ -527,7 +519,6 @@ ALTER TABLE ONLY barcodes
|
||||
ALTER TABLE ONLY "kunsthåndværk"
|
||||
ADD CONSTRAINT "kunsthåndværk_Umlauts ä_ö_ü-COUNT_uc" UNIQUE ("Umlauts ä_ö_ü-COUNT");
|
||||
|
||||
|
||||
--
|
||||
-- Name: kunsthåndværk_user_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
|
||||
--
|
||||
@@ -536,13 +527,6 @@ ALTER TABLE ONLY "kunsthåndværk"
|
||||
ADD CONSTRAINT "kunsthåndværk_user_id_fkey" FOREIGN KEY (user_id) REFERENCES users(id);
|
||||
|
||||
|
||||
--
|
||||
-- Name: kunsthåndværk_invisible_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: postgres
|
||||
--
|
||||
|
||||
ALTER TABLE ONLY "kunsthåndværk"
|
||||
ADD CONSTRAINT "kunsthåndværk_invisible_id_fkey" FOREIGN KEY (invisible_id) REFERENCES invisibles(id);
|
||||
|
||||
--
|
||||
-- PostgreSQL database dump complete
|
||||
--
|
||||
|
||||
Reference in New Issue
Block a user