Initial Commit
[OpenERP/testing.git] / testing.sql
1 --
2 -- Name: testing_base_a; Type: TABLE; Schema: public; Owner: openerp; Tablespace: 
3 --
4
5 CREATE TABLE testing_base_a (
6     id integer NOT NULL,
7     create_uid integer,
8     create_date timestamp without time zone,
9     write_date timestamp without time zone,
10     write_uid integer,
11     a1 character varying(8) NOT NULL,
12     a2 character varying(8) NOT NULL,
13     name character varying(8) NOT NULL
14 );
15
16
17 ALTER TABLE public.testing_base_a OWNER TO openerp;
18
19 --
20 -- Name: TABLE testing_base_a; Type: COMMENT; Schema: public; Owner: openerp
21 --
22
23 COMMENT ON TABLE testing_base_a IS 'BaseA';
24
25
26 --
27 -- Name: COLUMN testing_base_a.a1; Type: COMMENT; Schema: public; Owner: openerp
28 --
29
30 COMMENT ON COLUMN testing_base_a.a1 IS 'A1';
31
32
33 --
34 -- Name: COLUMN testing_base_a.a2; Type: COMMENT; Schema: public; Owner: openerp
35 --
36
37 COMMENT ON COLUMN testing_base_a.a2 IS 'A2';
38
39
40 --
41 -- Name: COLUMN testing_base_a.name; Type: COMMENT; Schema: public; Owner: openerp
42 --
43
44 COMMENT ON COLUMN testing_base_a.name IS 'name';
45
46
47 --
48 -- Name: testing_base_a_id_seq; Type: SEQUENCE; Schema: public; Owner: openerp
49 --
50
51 CREATE SEQUENCE testing_base_a_id_seq
52     START WITH 1
53     INCREMENT BY 1
54     NO MINVALUE
55     NO MAXVALUE
56     CACHE 1;
57
58
59 ALTER TABLE public.testing_base_a_id_seq OWNER TO openerp;
60
61 --
62 -- Name: testing_base_a_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: openerp
63 --
64
65 ALTER SEQUENCE testing_base_a_id_seq OWNED BY testing_base_a.id;
66
67
68 --
69 -- Name: testing_base_b; Type: TABLE; Schema: public; Owner: openerp; Tablespace: 
70 --
71
72 CREATE TABLE testing_base_b (
73     id integer NOT NULL,
74     create_uid integer,
75     create_date timestamp without time zone,
76     write_date timestamp without time zone,
77     write_uid integer,
78     name character varying(8) NOT NULL,
79     b2 character varying(8) NOT NULL,
80     b1 character varying(8) NOT NULL
81 );
82
83
84 ALTER TABLE public.testing_base_b OWNER TO openerp;
85
86 --
87 -- Name: TABLE testing_base_b; Type: COMMENT; Schema: public; Owner: openerp
88 --
89
90 COMMENT ON TABLE testing_base_b IS 'BaseB';
91
92
93 --
94 -- Name: COLUMN testing_base_b.name; Type: COMMENT; Schema: public; Owner: openerp
95 --
96
97 COMMENT ON COLUMN testing_base_b.name IS 'name';
98
99
100 --
101 -- Name: COLUMN testing_base_b.b2; Type: COMMENT; Schema: public; Owner: openerp
102 --
103
104 COMMENT ON COLUMN testing_base_b.b2 IS 'B2';
105
106
107 --
108 -- Name: COLUMN testing_base_b.b1; Type: COMMENT; Schema: public; Owner: openerp
109 --
110
111 COMMENT ON COLUMN testing_base_b.b1 IS 'B1';
112
113
114 --
115 -- Name: testing_base_b_id_seq; Type: SEQUENCE; Schema: public; Owner: openerp
116 --
117
118 CREATE SEQUENCE testing_base_b_id_seq
119     START WITH 1
120     INCREMENT BY 1
121     NO MINVALUE
122     NO MAXVALUE
123     CACHE 1;
124
125
126 ALTER TABLE public.testing_base_b_id_seq OWNER TO openerp;
127
128 --
129 -- Name: testing_base_b_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: openerp
130 --
131
132 ALTER SEQUENCE testing_base_b_id_seq OWNED BY testing_base_b.id;
133
134
135 --
136 -- Name: testing_base_c; Type: TABLE; Schema: public; Owner: openerp; Tablespace: 
137 --
138
139 CREATE TABLE testing_base_c (
140     id integer NOT NULL,
141     create_uid integer,
142     create_date timestamp without time zone,
143     write_date timestamp without time zone,
144     write_uid integer,
145     c3 character varying(8) NOT NULL,
146     c2 character varying(8) NOT NULL,
147     c1 character varying(8) NOT NULL,
148     name character varying(8) NOT NULL
149 );
150
151
152 ALTER TABLE public.testing_base_c OWNER TO openerp;
153
154 --
155 -- Name: TABLE testing_base_c; Type: COMMENT; Schema: public; Owner: openerp
156 --
157
158 COMMENT ON TABLE testing_base_c IS 'ClassInheritance';
159
160
161 --
162 -- Name: COLUMN testing_base_c.c3; Type: COMMENT; Schema: public; Owner: openerp
163 --
164
165 COMMENT ON COLUMN testing_base_c.c3 IS 'C3';
166
167
168 --
169 -- Name: COLUMN testing_base_c.c2; Type: COMMENT; Schema: public; Owner: openerp
170 --
171
172 COMMENT ON COLUMN testing_base_c.c2 IS 'C2';
173
174
175 --
176 -- Name: COLUMN testing_base_c.c1; Type: COMMENT; Schema: public; Owner: openerp
177 --
178
179 COMMENT ON COLUMN testing_base_c.c1 IS 'C1';
180
181
182 --
183 -- Name: COLUMN testing_base_c.name; Type: COMMENT; Schema: public; Owner: openerp
184 --
185
186 COMMENT ON COLUMN testing_base_c.name IS 'name';
187
188
189 --
190 -- Name: testing_base_c_id_seq; Type: SEQUENCE; Schema: public; Owner: openerp
191 --
192
193 CREATE SEQUENCE testing_base_c_id_seq
194     START WITH 1
195     INCREMENT BY 1
196     NO MINVALUE
197     NO MAXVALUE
198     CACHE 1;
199
200
201 ALTER TABLE public.testing_base_c_id_seq OWNER TO openerp;
202
203 --
204 -- Name: testing_base_c_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: openerp
205 --
206
207 ALTER SEQUENCE testing_base_c_id_seq OWNED BY testing_base_c.id;
208
209
210 --
211 -- Name: testing_base_d; Type: TABLE; Schema: public; Owner: openerp; Tablespace: 
212 --
213
214 CREATE TABLE testing_base_d (
215     id integer NOT NULL,
216     create_uid integer,
217     create_date timestamp without time zone,
218     write_date timestamp without time zone,
219     write_uid integer,
220     d2 character varying(8) NOT NULL,
221     name character varying(8) NOT NULL,
222     d1 character varying(8) NOT NULL
223 );
224
225
226 ALTER TABLE public.testing_base_d OWNER TO openerp;
227
228 --
229 -- Name: TABLE testing_base_d; Type: COMMENT; Schema: public; Owner: openerp
230 --
231
232 COMMENT ON TABLE testing_base_d IS 'BaseD';
233
234
235 --
236 -- Name: COLUMN testing_base_d.d2; Type: COMMENT; Schema: public; Owner: openerp
237 --
238
239 COMMENT ON COLUMN testing_base_d.d2 IS 'D2';
240
241
242 --
243 -- Name: COLUMN testing_base_d.name; Type: COMMENT; Schema: public; Owner: openerp
244 --
245
246 COMMENT ON COLUMN testing_base_d.name IS 'name';
247
248
249 --
250 -- Name: COLUMN testing_base_d.d1; Type: COMMENT; Schema: public; Owner: openerp
251 --
252
253 COMMENT ON COLUMN testing_base_d.d1 IS 'D1';
254
255
256 --
257 -- Name: testing_base_d_id_seq; Type: SEQUENCE; Schema: public; Owner: openerp
258 --
259
260 CREATE SEQUENCE testing_base_d_id_seq
261     START WITH 1
262     INCREMENT BY 1
263     NO MINVALUE
264     NO MAXVALUE
265     CACHE 1;
266
267
268 ALTER TABLE public.testing_base_d_id_seq OWNER TO openerp;
269
270 --
271 -- Name: testing_base_d_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: openerp
272 --
273
274 ALTER SEQUENCE testing_base_d_id_seq OWNED BY testing_base_d.id;
275
276
277 --
278 -- Name: testing_inheritance_delegation1; Type: TABLE; Schema: public; Owner: openerp; Tablespace: 
279 --
280
281 CREATE TABLE testing_inheritance_delegation1 (
282     id integer NOT NULL,
283     create_uid integer,
284     create_date timestamp without time zone,
285     write_date timestamp without time zone,
286     write_uid integer,
287     a1 character varying(8) NOT NULL,
288     a3 character varying(8) NOT NULL,
289     name character varying(8) NOT NULL,
290     custom_base_a_id integer NOT NULL
291 );
292
293
294 ALTER TABLE public.testing_inheritance_delegation1 OWNER TO openerp;
295
296 --
297 -- Name: TABLE testing_inheritance_delegation1; Type: COMMENT; Schema: public; Owner: openerp
298 --
299
300 COMMENT ON TABLE testing_inheritance_delegation1 IS 'DelegationInheritance1';
301
302
303 --
304 -- Name: COLUMN testing_inheritance_delegation1.a1; Type: COMMENT; Schema: public; Owner: openerp
305 --
306
307 COMMENT ON COLUMN testing_inheritance_delegation1.a1 IS 'A1';
308
309
310 --
311 -- Name: COLUMN testing_inheritance_delegation1.a3; Type: COMMENT; Schema: public; Owner: openerp
312 --
313
314 COMMENT ON COLUMN testing_inheritance_delegation1.a3 IS 'A3';
315
316
317 --
318 -- Name: COLUMN testing_inheritance_delegation1.name; Type: COMMENT; Schema: public; Owner: openerp
319 --
320
321 COMMENT ON COLUMN testing_inheritance_delegation1.name IS 'name';
322
323
324 --
325 -- Name: COLUMN testing_inheritance_delegation1.custom_base_a_id; Type: COMMENT; Schema: public; Owner: openerp
326 --
327
328 COMMENT ON COLUMN testing_inheritance_delegation1.custom_base_a_id IS 'Automatically created field to link to parent testing.base.a';
329
330
331 --
332 -- Name: testing_inheritance_delegation1_id_seq; Type: SEQUENCE; Schema: public; Owner: openerp
333 --
334
335 CREATE SEQUENCE testing_inheritance_delegation1_id_seq
336     START WITH 1
337     INCREMENT BY 1
338     NO MINVALUE
339     NO MAXVALUE
340     CACHE 1;
341
342
343 ALTER TABLE public.testing_inheritance_delegation1_id_seq OWNER TO openerp;
344
345 --
346 -- Name: testing_inheritance_delegation1_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: openerp
347 --
348
349 ALTER SEQUENCE testing_inheritance_delegation1_id_seq OWNED BY testing_inheritance_delegation1.id;
350
351
352 --
353 -- Name: testing_inheritance_delegation2; Type: TABLE; Schema: public; Owner: openerp; Tablespace: 
354 --
355
356 CREATE TABLE testing_inheritance_delegation2 (
357     id integer NOT NULL,
358     create_uid integer,
359     create_date timestamp without time zone,
360     write_date timestamp without time zone,
361     write_uid integer,
362     custom_base_a_id integer NOT NULL,
363     a1 character varying(8) NOT NULL,
364     a3 character varying(8) NOT NULL,
365     b1 character varying(8) NOT NULL,
366     b3 character varying(8) NOT NULL,
367     "custom_base_B_id" integer NOT NULL,
368     name character varying(8) NOT NULL
369 );
370
371
372 ALTER TABLE public.testing_inheritance_delegation2 OWNER TO openerp;
373
374 --
375 -- Name: TABLE testing_inheritance_delegation2; Type: COMMENT; Schema: public; Owner: openerp
376 --
377
378 COMMENT ON TABLE testing_inheritance_delegation2 IS 'DelegationInheritance2';
379
380
381 --
382 -- Name: COLUMN testing_inheritance_delegation2.custom_base_a_id; Type: COMMENT; Schema: public; Owner: openerp
383 --
384
385 COMMENT ON COLUMN testing_inheritance_delegation2.custom_base_a_id IS 'Automatically created field to link to parent testing.base.a';
386
387
388 --
389 -- Name: COLUMN testing_inheritance_delegation2.a1; Type: COMMENT; Schema: public; Owner: openerp
390 --
391
392 COMMENT ON COLUMN testing_inheritance_delegation2.a1 IS 'A1';
393
394
395 --
396 -- Name: COLUMN testing_inheritance_delegation2.a3; Type: COMMENT; Schema: public; Owner: openerp
397 --
398
399 COMMENT ON COLUMN testing_inheritance_delegation2.a3 IS 'A3';
400
401
402 --
403 -- Name: COLUMN testing_inheritance_delegation2.b1; Type: COMMENT; Schema: public; Owner: openerp
404 --
405
406 COMMENT ON COLUMN testing_inheritance_delegation2.b1 IS 'B1';
407
408
409 --
410 -- Name: COLUMN testing_inheritance_delegation2.b3; Type: COMMENT; Schema: public; Owner: openerp
411 --
412
413 COMMENT ON COLUMN testing_inheritance_delegation2.b3 IS 'B3';
414
415
416 --
417 -- Name: COLUMN testing_inheritance_delegation2."custom_base_B_id"; Type: COMMENT; Schema: public; Owner: openerp
418 --
419
420 COMMENT ON COLUMN testing_inheritance_delegation2."custom_base_B_id" IS 'Automatically created field to link to parent testing.base.b';
421
422
423 --
424 -- Name: COLUMN testing_inheritance_delegation2.name; Type: COMMENT; Schema: public; Owner: openerp
425 --
426
427 COMMENT ON COLUMN testing_inheritance_delegation2.name IS 'name';
428
429
430 --
431 -- Name: testing_inheritance_delegation2_id_seq; Type: SEQUENCE; Schema: public; Owner: openerp
432 --
433
434 CREATE SEQUENCE testing_inheritance_delegation2_id_seq
435     START WITH 1
436     INCREMENT BY 1
437     NO MINVALUE
438     NO MAXVALUE
439     CACHE 1;
440
441
442 ALTER TABLE public.testing_inheritance_delegation2_id_seq OWNER TO openerp;
443
444 --
445 -- Name: testing_inheritance_delegation2_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: openerp
446 --
447
448 ALTER SEQUENCE testing_inheritance_delegation2_id_seq OWNED BY testing_inheritance_delegation2.id;
449
450
451 --
452 -- Name: testing_inheritance_delegation3; Type: TABLE; Schema: public; Owner: openerp; Tablespace: 
453 --
454
455 CREATE TABLE testing_inheritance_delegation3 (
456     id integer NOT NULL,
457     create_uid integer,
458     create_date timestamp without time zone,
459     write_date timestamp without time zone,
460     write_uid integer,
461     a1 character varying(8) NOT NULL,
462     a3 character varying(8) NOT NULL,
463     name character varying(8) NOT NULL,
464     custom_base_a_id integer NOT NULL
465 );
466
467
468 ALTER TABLE public.testing_inheritance_delegation3 OWNER TO openerp;
469
470 --
471 -- Name: TABLE testing_inheritance_delegation3; Type: COMMENT; Schema: public; Owner: openerp
472 --
473
474 COMMENT ON TABLE testing_inheritance_delegation3 IS 'DelegationInheritance3';
475
476
477 --
478 -- Name: COLUMN testing_inheritance_delegation3.a1; Type: COMMENT; Schema: public; Owner: openerp
479 --
480
481 COMMENT ON COLUMN testing_inheritance_delegation3.a1 IS 'A1';
482
483
484 --
485 -- Name: COLUMN testing_inheritance_delegation3.a3; Type: COMMENT; Schema: public; Owner: openerp
486 --
487
488 COMMENT ON COLUMN testing_inheritance_delegation3.a3 IS 'A3';
489
490
491 --
492 -- Name: COLUMN testing_inheritance_delegation3.name; Type: COMMENT; Schema: public; Owner: openerp
493 --
494
495 COMMENT ON COLUMN testing_inheritance_delegation3.name IS 'name';
496
497
498 --
499 -- Name: COLUMN testing_inheritance_delegation3.custom_base_a_id; Type: COMMENT; Schema: public; Owner: openerp
500 --
501
502 COMMENT ON COLUMN testing_inheritance_delegation3.custom_base_a_id IS 'Base A';
503
504
505 --
506 -- Name: testing_inheritance_delegation3_id_seq; Type: SEQUENCE; Schema: public; Owner: openerp
507 --
508
509 CREATE SEQUENCE testing_inheritance_delegation3_id_seq
510     START WITH 1
511     INCREMENT BY 1
512     NO MINVALUE
513     NO MAXVALUE
514     CACHE 1;
515
516
517 ALTER TABLE public.testing_inheritance_delegation3_id_seq OWNER TO openerp;
518
519 --
520 -- Name: testing_inheritance_delegation3_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: openerp
521 --
522
523 ALTER SEQUENCE testing_inheritance_delegation3_id_seq OWNED BY testing_inheritance_delegation3.id;
524
525
526 --
527 -- Name: testing_inheritance_delegation4; Type: TABLE; Schema: public; Owner: openerp; Tablespace: 
528 --
529
530 CREATE TABLE testing_inheritance_delegation4 (
531     id integer NOT NULL,
532     create_uid integer,
533     create_date timestamp without time zone,
534     write_date timestamp without time zone,
535     write_uid integer,
536     a1 character varying(8) NOT NULL,
537     a3 character varying(8) NOT NULL,
538     name character varying(8) NOT NULL,
539     b3 character varying(8) NOT NULL,
540     custom_base_b_id integer NOT NULL,
541     custom_base_a_id integer NOT NULL,
542     b1 character varying(8) NOT NULL
543 );
544
545
546 ALTER TABLE public.testing_inheritance_delegation4 OWNER TO openerp;
547
548 --
549 -- Name: TABLE testing_inheritance_delegation4; Type: COMMENT; Schema: public; Owner: openerp
550 --
551
552 COMMENT ON TABLE testing_inheritance_delegation4 IS 'DelegationInheritance4';
553
554
555 --
556 -- Name: COLUMN testing_inheritance_delegation4.a1; Type: COMMENT; Schema: public; Owner: openerp
557 --
558
559 COMMENT ON COLUMN testing_inheritance_delegation4.a1 IS 'A1';
560
561
562 --
563 -- Name: COLUMN testing_inheritance_delegation4.a3; Type: COMMENT; Schema: public; Owner: openerp
564 --
565
566 COMMENT ON COLUMN testing_inheritance_delegation4.a3 IS 'A3';
567
568
569 --
570 -- Name: COLUMN testing_inheritance_delegation4.name; Type: COMMENT; Schema: public; Owner: openerp
571 --
572
573 COMMENT ON COLUMN testing_inheritance_delegation4.name IS 'name';
574
575
576 --
577 -- Name: COLUMN testing_inheritance_delegation4.b3; Type: COMMENT; Schema: public; Owner: openerp
578 --
579
580 COMMENT ON COLUMN testing_inheritance_delegation4.b3 IS 'B3';
581
582
583 --
584 -- Name: COLUMN testing_inheritance_delegation4.custom_base_b_id; Type: COMMENT; Schema: public; Owner: openerp
585 --
586
587 COMMENT ON COLUMN testing_inheritance_delegation4.custom_base_b_id IS 'Base B';
588
589
590 --
591 -- Name: COLUMN testing_inheritance_delegation4.custom_base_a_id; Type: COMMENT; Schema: public; Owner: openerp
592 --
593
594 COMMENT ON COLUMN testing_inheritance_delegation4.custom_base_a_id IS 'Base A';
595
596
597 --
598 -- Name: COLUMN testing_inheritance_delegation4.b1; Type: COMMENT; Schema: public; Owner: openerp
599 --
600
601 COMMENT ON COLUMN testing_inheritance_delegation4.b1 IS 'B1';
602
603
604 --
605 -- Name: testing_inheritance_delegation4_id_seq; Type: SEQUENCE; Schema: public; Owner: openerp
606 --
607
608 CREATE SEQUENCE testing_inheritance_delegation4_id_seq
609     START WITH 1
610     INCREMENT BY 1
611     NO MINVALUE
612     NO MAXVALUE
613     CACHE 1;
614
615
616 ALTER TABLE public.testing_inheritance_delegation4_id_seq OWNER TO openerp;
617
618 --
619 -- Name: testing_inheritance_delegation4_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: openerp
620 --
621
622 ALTER SEQUENCE testing_inheritance_delegation4_id_seq OWNED BY testing_inheritance_delegation4.id;
623
624
625 --
626 -- Name: testing_inheritance_prototype; Type: TABLE; Schema: public; Owner: openerp; Tablespace: 
627 --
628
629 CREATE TABLE testing_inheritance_prototype (
630     id integer NOT NULL,
631     create_uid integer,
632     create_date timestamp without time zone,
633     write_date timestamp without time zone,
634     write_uid integer,
635     d1 character varying(8) NOT NULL,
636     d2 character varying(8) NOT NULL,
637     name character varying(8) NOT NULL,
638     d3 character varying(8) NOT NULL
639 );
640
641
642 ALTER TABLE public.testing_inheritance_prototype OWNER TO openerp;
643
644 --
645 -- Name: TABLE testing_inheritance_prototype; Type: COMMENT; Schema: public; Owner: openerp
646 --
647
648 COMMENT ON TABLE testing_inheritance_prototype IS 'PrototypeInheritance';
649
650
651 --
652 -- Name: COLUMN testing_inheritance_prototype.d1; Type: COMMENT; Schema: public; Owner: openerp
653 --
654
655 COMMENT ON COLUMN testing_inheritance_prototype.d1 IS 'D1';
656
657
658 --
659 -- Name: COLUMN testing_inheritance_prototype.d2; Type: COMMENT; Schema: public; Owner: openerp
660 --
661
662 COMMENT ON COLUMN testing_inheritance_prototype.d2 IS 'D2';
663
664
665 --
666 -- Name: COLUMN testing_inheritance_prototype.name; Type: COMMENT; Schema: public; Owner: openerp
667 --
668
669 COMMENT ON COLUMN testing_inheritance_prototype.name IS 'name';
670
671
672 --
673 -- Name: COLUMN testing_inheritance_prototype.d3; Type: COMMENT; Schema: public; Owner: openerp
674 --
675
676 COMMENT ON COLUMN testing_inheritance_prototype.d3 IS 'D3';
677
678
679 --
680 -- Name: testing_inheritance_prototype_id_seq; Type: SEQUENCE; Schema: public; Owner: openerp
681 --
682
683 CREATE SEQUENCE testing_inheritance_prototype_id_seq
684     START WITH 1
685     INCREMENT BY 1
686     NO MINVALUE
687     NO MAXVALUE
688     CACHE 1;
689
690
691 ALTER TABLE public.testing_inheritance_prototype_id_seq OWNER TO openerp;
692
693 --
694 -- Name: testing_inheritance_prototype_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: openerp
695 --
696
697 ALTER SEQUENCE testing_inheritance_prototype_id_seq OWNED BY testing_inheritance_prototype.id;
698
699
700
701
702
703
704
705
706 --
707 -- Name: id; Type: DEFAULT; Schema: public; Owner: openerp
708 --
709
710 ALTER TABLE ONLY testing_base_a ALTER COLUMN id SET DEFAULT nextval('testing_base_a_id_seq'::regclass);
711
712
713 --
714 -- Name: id; Type: DEFAULT; Schema: public; Owner: openerp
715 --
716
717 ALTER TABLE ONLY testing_base_b ALTER COLUMN id SET DEFAULT nextval('testing_base_b_id_seq'::regclass);
718
719
720 --
721 -- Name: id; Type: DEFAULT; Schema: public; Owner: openerp
722 --
723
724 ALTER TABLE ONLY testing_base_c ALTER COLUMN id SET DEFAULT nextval('testing_base_c_id_seq'::regclass);
725
726
727 --
728 -- Name: id; Type: DEFAULT; Schema: public; Owner: openerp
729 --
730
731 ALTER TABLE ONLY testing_base_d ALTER COLUMN id SET DEFAULT nextval('testing_base_d_id_seq'::regclass);
732
733
734 --
735 -- Name: id; Type: DEFAULT; Schema: public; Owner: openerp
736 --
737
738 ALTER TABLE ONLY testing_inheritance_delegation1 ALTER COLUMN id SET DEFAULT nextval('testing_inheritance_delegation1_id_seq'::regclass);
739
740
741 --
742 -- Name: id; Type: DEFAULT; Schema: public; Owner: openerp
743 --
744
745 ALTER TABLE ONLY testing_inheritance_delegation2 ALTER COLUMN id SET DEFAULT nextval('testing_inheritance_delegation2_id_seq'::regclass);
746
747
748 --
749 -- Name: id; Type: DEFAULT; Schema: public; Owner: openerp
750 --
751
752 ALTER TABLE ONLY testing_inheritance_delegation3 ALTER COLUMN id SET DEFAULT nextval('testing_inheritance_delegation3_id_seq'::regclass);
753
754
755 --
756 -- Name: id; Type: DEFAULT; Schema: public; Owner: openerp
757 --
758
759 ALTER TABLE ONLY testing_inheritance_delegation4 ALTER COLUMN id SET DEFAULT nextval('testing_inheritance_delegation4_id_seq'::regclass);
760
761
762 --
763 -- Name: id; Type: DEFAULT; Schema: public; Owner: openerp
764 --
765
766 ALTER TABLE ONLY testing_inheritance_prototype ALTER COLUMN id SET DEFAULT nextval('testing_inheritance_prototype_id_seq'::regclass);
767
768
769
770
771
772
773
774
775
776
777 --
778 -- Data for Name: testing_base_a; Type: TABLE DATA; Schema: public; Owner: openerp
779 --
780
781 COPY testing_base_a (id, create_uid, create_date, write_date, write_uid, a1, a2, name) FROM stdin;
782 \.
783
784
785 --
786 -- Name: testing_base_a_id_seq; Type: SEQUENCE SET; Schema: public; Owner: openerp
787 --
788
789 SELECT pg_catalog.setval('testing_base_a_id_seq', 1, false);
790
791
792 --
793 -- Data for Name: testing_base_b; Type: TABLE DATA; Schema: public; Owner: openerp
794 --
795
796 COPY testing_base_b (id, create_uid, create_date, write_date, write_uid, name, b2, b1) FROM stdin;
797 \.
798
799
800 --
801 -- Name: testing_base_b_id_seq; Type: SEQUENCE SET; Schema: public; Owner: openerp
802 --
803
804 SELECT pg_catalog.setval('testing_base_b_id_seq', 1, false);
805
806
807 --
808 -- Data for Name: testing_base_c; Type: TABLE DATA; Schema: public; Owner: openerp
809 --
810
811 COPY testing_base_c (id, create_uid, create_date, write_date, write_uid, c3, c2, c1, name) FROM stdin;
812 \.
813
814
815 --
816 -- Name: testing_base_c_id_seq; Type: SEQUENCE SET; Schema: public; Owner: openerp
817 --
818
819 SELECT pg_catalog.setval('testing_base_c_id_seq', 1, false);
820
821
822 --
823 -- Data for Name: testing_base_d; Type: TABLE DATA; Schema: public; Owner: openerp
824 --
825
826 COPY testing_base_d (id, create_uid, create_date, write_date, write_uid, d2, name, d1) FROM stdin;
827 \.
828
829
830 --
831 -- Name: testing_base_d_id_seq; Type: SEQUENCE SET; Schema: public; Owner: openerp
832 --
833
834 SELECT pg_catalog.setval('testing_base_d_id_seq', 1, false);
835
836
837 --
838 -- Data for Name: testing_inheritance_delegation1; Type: TABLE DATA; Schema: public; Owner: openerp
839 --
840
841 COPY testing_inheritance_delegation1 (id, create_uid, create_date, write_date, write_uid, a1, a3, name, custom_base_a_id) FROM stdin;
842 \.
843
844
845 --
846 -- Name: testing_inheritance_delegation1_id_seq; Type: SEQUENCE SET; Schema: public; Owner: openerp
847 --
848
849 SELECT pg_catalog.setval('testing_inheritance_delegation1_id_seq', 1, false);
850
851
852 --
853 -- Data for Name: testing_inheritance_delegation2; Type: TABLE DATA; Schema: public; Owner: openerp
854 --
855
856 COPY testing_inheritance_delegation2 (id, create_uid, create_date, write_date, write_uid, custom_base_a_id, a1, a3, b1, b3, "custom_base_B_id", name) FROM stdin;
857 \.
858
859
860 --
861 -- Name: testing_inheritance_delegation2_id_seq; Type: SEQUENCE SET; Schema: public; Owner: openerp
862 --
863
864 SELECT pg_catalog.setval('testing_inheritance_delegation2_id_seq', 1, false);
865
866
867 --
868 -- Data for Name: testing_inheritance_delegation3; Type: TABLE DATA; Schema: public; Owner: openerp
869 --
870
871 COPY testing_inheritance_delegation3 (id, create_uid, create_date, write_date, write_uid, a1, a3, name, custom_base_a_id) FROM stdin;
872 \.
873
874
875 --
876 -- Name: testing_inheritance_delegation3_id_seq; Type: SEQUENCE SET; Schema: public; Owner: openerp
877 --
878
879 SELECT pg_catalog.setval('testing_inheritance_delegation3_id_seq', 1, false);
880
881
882 --
883 -- Data for Name: testing_inheritance_delegation4; Type: TABLE DATA; Schema: public; Owner: openerp
884 --
885
886 COPY testing_inheritance_delegation4 (id, create_uid, create_date, write_date, write_uid, a1, a3, name, b3, custom_base_b_id, custom_base_a_id, b1) FROM stdin;
887 \.
888
889
890 --
891 -- Name: testing_inheritance_delegation4_id_seq; Type: SEQUENCE SET; Schema: public; Owner: openerp
892 --
893
894 SELECT pg_catalog.setval('testing_inheritance_delegation4_id_seq', 1, false);
895
896
897 --
898 -- Data for Name: testing_inheritance_prototype; Type: TABLE DATA; Schema: public; Owner: openerp
899 --
900
901 COPY testing_inheritance_prototype (id, create_uid, create_date, write_date, write_uid, d1, d2, name, d3) FROM stdin;
902 \.
903
904
905 --
906 -- Name: testing_inheritance_prototype_id_seq; Type: SEQUENCE SET; Schema: public; Owner: openerp
907 --
908
909 SELECT pg_catalog.setval('testing_inheritance_prototype_id_seq', 1, false);
910
911
912
913
914
915
916
917
918
919
920 --
921 -- Name: testing_base_a_pkey; Type: CONSTRAINT; Schema: public; Owner: openerp; Tablespace: 
922 --
923
924 ALTER TABLE ONLY testing_base_a
925     ADD CONSTRAINT testing_base_a_pkey PRIMARY KEY (id);
926
927
928 --
929 -- Name: testing_base_b_pkey; Type: CONSTRAINT; Schema: public; Owner: openerp; Tablespace: 
930 --
931
932 ALTER TABLE ONLY testing_base_b
933     ADD CONSTRAINT testing_base_b_pkey PRIMARY KEY (id);
934
935
936 --
937 -- Name: testing_base_c_pkey; Type: CONSTRAINT; Schema: public; Owner: openerp; Tablespace: 
938 --
939
940 ALTER TABLE ONLY testing_base_c
941     ADD CONSTRAINT testing_base_c_pkey PRIMARY KEY (id);
942
943
944 --
945 -- Name: testing_base_d_pkey; Type: CONSTRAINT; Schema: public; Owner: openerp; Tablespace: 
946 --
947
948 ALTER TABLE ONLY testing_base_d
949     ADD CONSTRAINT testing_base_d_pkey PRIMARY KEY (id);
950
951
952 --
953 -- Name: testing_inheritance_delegation1_pkey; Type: CONSTRAINT; Schema: public; Owner: openerp; Tablespace: 
954 --
955
956 ALTER TABLE ONLY testing_inheritance_delegation1
957     ADD CONSTRAINT testing_inheritance_delegation1_pkey PRIMARY KEY (id);
958
959
960 --
961 -- Name: testing_inheritance_delegation2_pkey; Type: CONSTRAINT; Schema: public; Owner: openerp; Tablespace: 
962 --
963
964 ALTER TABLE ONLY testing_inheritance_delegation2
965     ADD CONSTRAINT testing_inheritance_delegation2_pkey PRIMARY KEY (id);
966
967
968 --
969 -- Name: testing_inheritance_delegation3_pkey; Type: CONSTRAINT; Schema: public; Owner: openerp; Tablespace: 
970 --
971
972 ALTER TABLE ONLY testing_inheritance_delegation3
973     ADD CONSTRAINT testing_inheritance_delegation3_pkey PRIMARY KEY (id);
974
975
976 --
977 -- Name: testing_inheritance_delegation4_pkey; Type: CONSTRAINT; Schema: public; Owner: openerp; Tablespace: 
978 --
979
980 ALTER TABLE ONLY testing_inheritance_delegation4
981     ADD CONSTRAINT testing_inheritance_delegation4_pkey PRIMARY KEY (id);
982
983
984 --
985 -- Name: testing_inheritance_prototype_pkey; Type: CONSTRAINT; Schema: public; Owner: openerp; Tablespace: 
986 --
987
988 ALTER TABLE ONLY testing_inheritance_prototype
989     ADD CONSTRAINT testing_inheritance_prototype_pkey PRIMARY KEY (id);
990
991
992
993
994
995
996
997
998
999
1000 --
1001 -- Name: testing_base_a_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1002 --
1003
1004 ALTER TABLE ONLY testing_base_a
1005     ADD CONSTRAINT testing_base_a_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1006
1007
1008 --
1009 -- Name: testing_base_a_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1010 --
1011
1012 ALTER TABLE ONLY testing_base_a
1013     ADD CONSTRAINT testing_base_a_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1014
1015
1016 --
1017 -- Name: testing_base_b_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1018 --
1019
1020 ALTER TABLE ONLY testing_base_b
1021     ADD CONSTRAINT testing_base_b_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1022
1023
1024 --
1025 -- Name: testing_base_b_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1026 --
1027
1028 ALTER TABLE ONLY testing_base_b
1029     ADD CONSTRAINT testing_base_b_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1030
1031
1032 --
1033 -- Name: testing_base_c_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1034 --
1035
1036 ALTER TABLE ONLY testing_base_c
1037     ADD CONSTRAINT testing_base_c_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1038
1039
1040 --
1041 -- Name: testing_base_c_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1042 --
1043
1044 ALTER TABLE ONLY testing_base_c
1045     ADD CONSTRAINT testing_base_c_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1046
1047
1048 --
1049 -- Name: testing_base_d_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1050 --
1051
1052 ALTER TABLE ONLY testing_base_d
1053     ADD CONSTRAINT testing_base_d_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1054
1055
1056 --
1057 -- Name: testing_base_d_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1058 --
1059
1060 ALTER TABLE ONLY testing_base_d
1061     ADD CONSTRAINT testing_base_d_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1062
1063
1064 --
1065 -- Name: testing_inheritance_delegation1_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1066 --
1067
1068 ALTER TABLE ONLY testing_inheritance_delegation1
1069     ADD CONSTRAINT testing_inheritance_delegation1_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1070
1071
1072 --
1073 -- Name: testing_inheritance_delegation1_custom_base_a_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1074 --
1075
1076 ALTER TABLE ONLY testing_inheritance_delegation1
1077     ADD CONSTRAINT testing_inheritance_delegation1_custom_base_a_id_fkey FOREIGN KEY (custom_base_a_id) REFERENCES testing_base_a(id) ON DELETE CASCADE;
1078
1079
1080 --
1081 -- Name: testing_inheritance_delegation1_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1082 --
1083
1084 ALTER TABLE ONLY testing_inheritance_delegation1
1085     ADD CONSTRAINT testing_inheritance_delegation1_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1086
1087
1088 --
1089 -- Name: testing_inheritance_delegation2_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1090 --
1091
1092 ALTER TABLE ONLY testing_inheritance_delegation2
1093     ADD CONSTRAINT testing_inheritance_delegation2_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1094
1095
1096 --
1097 -- Name: testing_inheritance_delegation2_custom_base_B_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1098 --
1099
1100 ALTER TABLE ONLY testing_inheritance_delegation2
1101     ADD CONSTRAINT "testing_inheritance_delegation2_custom_base_B_id_fkey" FOREIGN KEY ("custom_base_B_id") REFERENCES testing_base_b(id) ON DELETE CASCADE;
1102
1103
1104 --
1105 -- Name: testing_inheritance_delegation2_custom_base_a_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1106 --
1107
1108 ALTER TABLE ONLY testing_inheritance_delegation2
1109     ADD CONSTRAINT testing_inheritance_delegation2_custom_base_a_id_fkey FOREIGN KEY (custom_base_a_id) REFERENCES testing_base_a(id) ON DELETE CASCADE;
1110
1111
1112 --
1113 -- Name: testing_inheritance_delegation2_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1114 --
1115
1116 ALTER TABLE ONLY testing_inheritance_delegation2
1117     ADD CONSTRAINT testing_inheritance_delegation2_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1118
1119
1120 --
1121 -- Name: testing_inheritance_delegation3_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1122 --
1123
1124 ALTER TABLE ONLY testing_inheritance_delegation3
1125     ADD CONSTRAINT testing_inheritance_delegation3_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1126
1127
1128 --
1129 -- Name: testing_inheritance_delegation3_custom_base_a_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1130 --
1131
1132 ALTER TABLE ONLY testing_inheritance_delegation3
1133     ADD CONSTRAINT testing_inheritance_delegation3_custom_base_a_id_fkey FOREIGN KEY (custom_base_a_id) REFERENCES testing_base_a(id) ON DELETE CASCADE;
1134
1135
1136 --
1137 -- Name: testing_inheritance_delegation3_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1138 --
1139
1140 ALTER TABLE ONLY testing_inheritance_delegation3
1141     ADD CONSTRAINT testing_inheritance_delegation3_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1142
1143
1144 --
1145 -- Name: testing_inheritance_delegation4_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1146 --
1147
1148 ALTER TABLE ONLY testing_inheritance_delegation4
1149     ADD CONSTRAINT testing_inheritance_delegation4_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1150
1151
1152 --
1153 -- Name: testing_inheritance_delegation4_custom_base_a_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1154 --
1155
1156 ALTER TABLE ONLY testing_inheritance_delegation4
1157     ADD CONSTRAINT testing_inheritance_delegation4_custom_base_a_id_fkey FOREIGN KEY (custom_base_a_id) REFERENCES testing_base_a(id) ON DELETE CASCADE;
1158
1159
1160 --
1161 -- Name: testing_inheritance_delegation4_custom_base_b_id_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1162 --
1163
1164 ALTER TABLE ONLY testing_inheritance_delegation4
1165     ADD CONSTRAINT testing_inheritance_delegation4_custom_base_b_id_fkey FOREIGN KEY (custom_base_b_id) REFERENCES testing_base_b(id) ON DELETE CASCADE;
1166
1167
1168 --
1169 -- Name: testing_inheritance_delegation4_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1170 --
1171
1172 ALTER TABLE ONLY testing_inheritance_delegation4
1173     ADD CONSTRAINT testing_inheritance_delegation4_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1174
1175
1176 --
1177 -- Name: testing_inheritance_prototype_create_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1178 --
1179
1180 ALTER TABLE ONLY testing_inheritance_prototype
1181     ADD CONSTRAINT testing_inheritance_prototype_create_uid_fkey FOREIGN KEY (create_uid) REFERENCES res_users(id) ON DELETE SET NULL;
1182
1183
1184 --
1185 -- Name: testing_inheritance_prototype_write_uid_fkey; Type: FK CONSTRAINT; Schema: public; Owner: openerp
1186 --
1187
1188 ALTER TABLE ONLY testing_inheritance_prototype
1189     ADD CONSTRAINT testing_inheritance_prototype_write_uid_fkey FOREIGN KEY (write_uid) REFERENCES res_users(id) ON DELETE SET NULL;