-
Notifications
You must be signed in to change notification settings - Fork 111
/
yona_cms_postgres.sql
1787 lines (1316 loc) · 70 KB
/
yona_cms_postgres.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
--
-- PostgreSQL database dump
--
-- Dumped from database version 9.4.8
-- Dumped by pg_dump version 9.4.8
-- Started on 2016-10-05 15:36:30
SET statement_timeout = 0;
SET lock_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SET check_function_bodies = false;
SET client_min_messages = warning;
--
-- TOC entry 1 (class 3079 OID 11855)
-- Name: plpgsql; Type: EXTENSION; Schema: -; Owner:
--
CREATE EXTENSION IF NOT EXISTS plpgsql WITH SCHEMA pg_catalog;
--
-- TOC entry 2223 (class 0 OID 0)
-- Dependencies: 1
-- Name: EXTENSION plpgsql; Type: COMMENT; Schema: -; Owner:
--
COMMENT ON EXTENSION plpgsql IS 'PL/pgSQL procedural language';
SET search_path = public, pg_catalog;
SET default_tablespace = '';
SET default_with_oids = false;
--
-- TOC entry 174 (class 1259 OID 183027)
-- Name: admin_user; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE admin_user (
id integer NOT NULL,
role character varying(255) DEFAULT 'journalist'::character varying NOT NULL,
login character varying(50),
email character varying(50),
name character varying(50),
password character varying(255),
active smallint DEFAULT 0 NOT NULL
);
ALTER TABLE admin_user OWNER TO postgres;
--
-- TOC entry 173 (class 1259 OID 183025)
-- Name: admin_user_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE admin_user_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE admin_user_id_seq OWNER TO postgres;
--
-- TOC entry 2224 (class 0 OID 0)
-- Dependencies: 173
-- Name: admin_user_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE admin_user_id_seq OWNED BY admin_user.id;
--
-- TOC entry 175 (class 1259 OID 183036)
-- Name: cms_configuration; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE cms_configuration (
key character varying(50) NOT NULL,
value character varying(255) NOT NULL
);
ALTER TABLE cms_configuration OWNER TO postgres;
--
-- TOC entry 176 (class 1259 OID 183039)
-- Name: cms_javascript; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE cms_javascript (
id character varying(20) NOT NULL,
text text
);
ALTER TABLE cms_javascript OWNER TO postgres;
--
-- TOC entry 178 (class 1259 OID 183047)
-- Name: language; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE language (
id integer NOT NULL,
iso character varying(10) NOT NULL,
locale character varying(10),
name character varying(20),
short_name character varying(10),
url character varying(20),
sortorder integer,
"primary" character varying(255) DEFAULT '0'::character varying
);
ALTER TABLE language OWNER TO postgres;
--
-- TOC entry 177 (class 1259 OID 183045)
-- Name: language_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE language_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE language_id_seq OWNER TO postgres;
--
-- TOC entry 2225 (class 0 OID 0)
-- Dependencies: 177
-- Name: language_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE language_id_seq OWNED BY language.id;
--
-- TOC entry 180 (class 1259 OID 183054)
-- Name: menu; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE menu (
id integer NOT NULL,
root character varying(255) DEFAULT 'top'::character varying NOT NULL,
parent_id integer,
work_title character varying(255),
depth smallint DEFAULT 0 NOT NULL,
left_key integer,
right_key integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE menu OWNER TO postgres;
--
-- TOC entry 179 (class 1259 OID 183052)
-- Name: menu_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE menu_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE menu_id_seq OWNER TO postgres;
--
-- TOC entry 2226 (class 0 OID 0)
-- Dependencies: 179
-- Name: menu_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE menu_id_seq OWNED BY menu.id;
--
-- TOC entry 182 (class 1259 OID 183065)
-- Name: menu_translate; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE menu_translate (
id integer NOT NULL,
foreign_id integer NOT NULL,
lang character varying(20),
key character varying(255),
value text
);
ALTER TABLE menu_translate OWNER TO postgres;
--
-- TOC entry 181 (class 1259 OID 183063)
-- Name: menu_translate_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE menu_translate_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE menu_translate_id_seq OWNER TO postgres;
--
-- TOC entry 2227 (class 0 OID 0)
-- Dependencies: 181
-- Name: menu_translate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE menu_translate_id_seq OWNED BY menu_translate.id;
--
-- TOC entry 184 (class 1259 OID 183074)
-- Name: page; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE page (
id integer NOT NULL,
slug character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE page OWNER TO postgres;
--
-- TOC entry 183 (class 1259 OID 183072)
-- Name: page_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE page_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE page_id_seq OWNER TO postgres;
--
-- TOC entry 2228 (class 0 OID 0)
-- Dependencies: 183
-- Name: page_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE page_id_seq OWNED BY page.id;
--
-- TOC entry 186 (class 1259 OID 183080)
-- Name: page_translate; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE page_translate (
id integer NOT NULL,
foreign_id integer NOT NULL,
lang character varying(20),
key character varying(255),
value text
);
ALTER TABLE page_translate OWNER TO postgres;
--
-- TOC entry 185 (class 1259 OID 183078)
-- Name: page_translate_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE page_translate_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE page_translate_id_seq OWNER TO postgres;
--
-- TOC entry 2229 (class 0 OID 0)
-- Dependencies: 185
-- Name: page_translate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE page_translate_id_seq OWNED BY page_translate.id;
--
-- TOC entry 190 (class 1259 OID 183099)
-- Name: publication; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE publication (
id integer NOT NULL,
type_id integer,
slug character varying(255),
created_at timestamp without time zone,
updated_at timestamp without time zone,
date timestamp without time zone,
preview_inner character varying(255) DEFAULT '1'::character varying,
preview_src character varying(255)
);
ALTER TABLE publication OWNER TO postgres;
--
-- TOC entry 189 (class 1259 OID 183097)
-- Name: publication_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE publication_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE publication_id_seq OWNER TO postgres;
--
-- TOC entry 2230 (class 0 OID 0)
-- Dependencies: 189
-- Name: publication_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE publication_id_seq OWNED BY publication.id;
--
-- TOC entry 192 (class 1259 OID 183109)
-- Name: publication_translate; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE publication_translate (
id integer NOT NULL,
foreign_id integer NOT NULL,
lang character varying(20),
key character varying(255),
value text
);
ALTER TABLE publication_translate OWNER TO postgres;
--
-- TOC entry 191 (class 1259 OID 183107)
-- Name: publication_translate_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE publication_translate_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE publication_translate_id_seq OWNER TO postgres;
--
-- TOC entry 2231 (class 0 OID 0)
-- Dependencies: 191
-- Name: publication_translate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE publication_translate_id_seq OWNED BY publication_translate.id;
--
-- TOC entry 188 (class 1259 OID 183089)
-- Name: publication_type; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE publication_type (
id integer NOT NULL,
slug character varying(50),
"limit" integer,
format character varying(255),
display_date character varying(255) DEFAULT '0'::character varying
);
ALTER TABLE publication_type OWNER TO postgres;
--
-- TOC entry 187 (class 1259 OID 183087)
-- Name: publication_type_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE publication_type_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE publication_type_id_seq OWNER TO postgres;
--
-- TOC entry 2232 (class 0 OID 0)
-- Dependencies: 187
-- Name: publication_type_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE publication_type_id_seq OWNED BY publication_type.id;
--
-- TOC entry 194 (class 1259 OID 183118)
-- Name: publication_type_translate; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE publication_type_translate (
id integer NOT NULL,
foreign_id integer NOT NULL,
lang character varying(20),
key character varying(255),
value text
);
ALTER TABLE publication_type_translate OWNER TO postgres;
--
-- TOC entry 193 (class 1259 OID 183116)
-- Name: publication_type_translate_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE publication_type_translate_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE publication_type_translate_id_seq OWNER TO postgres;
--
-- TOC entry 2233 (class 0 OID 0)
-- Dependencies: 193
-- Name: publication_type_translate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE publication_type_translate_id_seq OWNED BY publication_type_translate.id;
--
-- TOC entry 196 (class 1259 OID 183127)
-- Name: seo_manager; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE seo_manager (
id integer NOT NULL,
url character varying(255),
head_title character varying(500),
meta_description character varying(500),
meta_keywords character varying(500),
seo_text text,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE seo_manager OWNER TO postgres;
--
-- TOC entry 195 (class 1259 OID 183125)
-- Name: seo_manager_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE seo_manager_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE seo_manager_id_seq OWNER TO postgres;
--
-- TOC entry 2234 (class 0 OID 0)
-- Dependencies: 195
-- Name: seo_manager_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE seo_manager_id_seq OWNED BY seo_manager.id;
--
-- TOC entry 198 (class 1259 OID 183136)
-- Name: translate; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE translate (
id integer NOT NULL,
lang character varying(20),
phrase character varying(500),
translation character varying(500)
);
ALTER TABLE translate OWNER TO postgres;
--
-- TOC entry 197 (class 1259 OID 183134)
-- Name: translate_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE translate_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE translate_id_seq OWNER TO postgres;
--
-- TOC entry 2235 (class 0 OID 0)
-- Dependencies: 197
-- Name: translate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE translate_id_seq OWNED BY translate.id;
--
-- TOC entry 200 (class 1259 OID 183145)
-- Name: tree_category; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE tree_category (
id integer NOT NULL,
root character varying(255) DEFAULT 'articles'::character varying NOT NULL,
parent_id integer,
slug character varying(255),
depth smallint DEFAULT 0 NOT NULL,
left_key integer,
right_key integer,
created_at timestamp without time zone,
updated_at timestamp without time zone
);
ALTER TABLE tree_category OWNER TO postgres;
--
-- TOC entry 199 (class 1259 OID 183143)
-- Name: tree_category_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE tree_category_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE tree_category_id_seq OWNER TO postgres;
--
-- TOC entry 2236 (class 0 OID 0)
-- Dependencies: 199
-- Name: tree_category_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE tree_category_id_seq OWNED BY tree_category.id;
--
-- TOC entry 202 (class 1259 OID 183156)
-- Name: tree_category_translate; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE tree_category_translate (
id integer NOT NULL,
foreign_id integer NOT NULL,
lang character varying(20),
key character varying(255),
value text
);
ALTER TABLE tree_category_translate OWNER TO postgres;
--
-- TOC entry 201 (class 1259 OID 183154)
-- Name: tree_category_translate_id_seq; Type: SEQUENCE; Schema: public; Owner: postgres
--
CREATE SEQUENCE tree_category_translate_id_seq
START WITH 1
INCREMENT BY 1
NO MINVALUE
NO MAXVALUE
CACHE 1;
ALTER TABLE tree_category_translate_id_seq OWNER TO postgres;
--
-- TOC entry 2237 (class 0 OID 0)
-- Dependencies: 201
-- Name: tree_category_translate_id_seq; Type: SEQUENCE OWNED BY; Schema: public; Owner: postgres
--
ALTER SEQUENCE tree_category_translate_id_seq OWNED BY tree_category_translate.id;
--
-- TOC entry 203 (class 1259 OID 183163)
-- Name: widget; Type: TABLE; Schema: public; Owner: postgres; Tablespace:
--
CREATE TABLE widget (
id character varying(255) NOT NULL,
title character varying(255),
html text
);
ALTER TABLE widget OWNER TO postgres;
--
-- TOC entry 1985 (class 2604 OID 183030)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY admin_user ALTER COLUMN id SET DEFAULT nextval('admin_user_id_seq'::regclass);
--
-- TOC entry 1988 (class 2604 OID 183050)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY language ALTER COLUMN id SET DEFAULT nextval('language_id_seq'::regclass);
--
-- TOC entry 1990 (class 2604 OID 183057)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY menu ALTER COLUMN id SET DEFAULT nextval('menu_id_seq'::regclass);
--
-- TOC entry 1993 (class 2604 OID 183068)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY menu_translate ALTER COLUMN id SET DEFAULT nextval('menu_translate_id_seq'::regclass);
--
-- TOC entry 1994 (class 2604 OID 183077)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY page ALTER COLUMN id SET DEFAULT nextval('page_id_seq'::regclass);
--
-- TOC entry 1995 (class 2604 OID 183083)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY page_translate ALTER COLUMN id SET DEFAULT nextval('page_translate_id_seq'::regclass);
--
-- TOC entry 1998 (class 2604 OID 183102)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY publication ALTER COLUMN id SET DEFAULT nextval('publication_id_seq'::regclass);
--
-- TOC entry 2000 (class 2604 OID 183112)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY publication_translate ALTER COLUMN id SET DEFAULT nextval('publication_translate_id_seq'::regclass);
--
-- TOC entry 1996 (class 2604 OID 183092)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY publication_type ALTER COLUMN id SET DEFAULT nextval('publication_type_id_seq'::regclass);
--
-- TOC entry 2001 (class 2604 OID 183121)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY publication_type_translate ALTER COLUMN id SET DEFAULT nextval('publication_type_translate_id_seq'::regclass);
--
-- TOC entry 2002 (class 2604 OID 183130)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY seo_manager ALTER COLUMN id SET DEFAULT nextval('seo_manager_id_seq'::regclass);
--
-- TOC entry 2003 (class 2604 OID 183139)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY translate ALTER COLUMN id SET DEFAULT nextval('translate_id_seq'::regclass);
--
-- TOC entry 2004 (class 2604 OID 183148)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY tree_category ALTER COLUMN id SET DEFAULT nextval('tree_category_id_seq'::regclass);
--
-- TOC entry 2007 (class 2604 OID 183159)
-- Name: id; Type: DEFAULT; Schema: public; Owner: postgres
--
ALTER TABLE ONLY tree_category_translate ALTER COLUMN id SET DEFAULT nextval('tree_category_translate_id_seq'::regclass);
--
-- TOC entry 2186 (class 0 OID 183027)
-- Dependencies: 174
-- Data for Name: admin_user; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY admin_user (id, role, login, email, name, password, active) FROM stdin;
1 admin admin [email protected] Admin Name $2y$10$IgvGXdrkaRpuXnQLcpva3ebuRdNqbcY7NvlS9aluVQIgHWLf1bIMa 1
2 admin yona [email protected] Yona CMS User $2y$10$2UUYmTf4f13el.b5K69WmeijY6E/nY4.hRYaokNe/lfyfvJ3Bz05O 1
\.
--
-- TOC entry 2238 (class 0 OID 0)
-- Dependencies: 173
-- Name: admin_user_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('admin_user_id_seq', 3, false);
--
-- TOC entry 2187 (class 0 OID 183036)
-- Dependencies: 175
-- Data for Name: cms_configuration; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY cms_configuration (key, value) FROM stdin;
ADMIN_EMAIL webmaster@localhost
DEBUG_MODE 1
DISPLAY_CHANGELOG 1
PROFILER 1
TECHNICAL_WORKS 0
WIDGETS_CACHE 1
\.
--
-- TOC entry 2188 (class 0 OID 183039)
-- Dependencies: 176
-- Data for Name: cms_javascript; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY cms_javascript (id, text) FROM stdin;
body <!-- custom javascript code or any html -->
head <!-- custom javascript code or any html -->
\.
--
-- TOC entry 2190 (class 0 OID 183047)
-- Dependencies: 178
-- Data for Name: language; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY language (id, iso, locale, name, short_name, url, sortorder, "primary") FROM stdin;
1 ru ru_RU Русский Рус ru 3 0
2 en en_EN English Eng en 1 1
3 uk uk_UA Українська Укр uk 2 0
\.
--
-- TOC entry 2239 (class 0 OID 0)
-- Dependencies: 177
-- Name: language_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('language_id_seq', 4, false);
--
-- TOC entry 2192 (class 0 OID 183054)
-- Dependencies: 180
-- Data for Name: menu; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY menu (id, root, parent_id, work_title, depth, left_key, right_key, created_at, updated_at) FROM stdin;
\.
--
-- TOC entry 2240 (class 0 OID 0)
-- Dependencies: 179
-- Name: menu_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('menu_id_seq', 1, false);
--
-- TOC entry 2194 (class 0 OID 183065)
-- Dependencies: 182
-- Data for Name: menu_translate; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY menu_translate (id, foreign_id, lang, key, value) FROM stdin;
\.
--
-- TOC entry 2241 (class 0 OID 0)
-- Dependencies: 181
-- Name: menu_translate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('menu_translate_id_seq', 1, false);
--
-- TOC entry 2196 (class 0 OID 183074)
-- Dependencies: 184
-- Data for Name: page; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY page (id, slug, created_at, updated_at) FROM stdin;
1 index 2014-08-03 15:18:47 2015-06-18 16:00:29
2 contacts 2014-08-03 22:25:13 2015-06-18 16:08:00
\.
--
-- TOC entry 2242 (class 0 OID 0)
-- Dependencies: 183
-- Name: page_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('page_id_seq', 3, false);
--
-- TOC entry 2198 (class 0 OID 183080)
-- Dependencies: 186
-- Data for Name: page_translate; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY page_translate (id, foreign_id, lang, key, value) FROM stdin;
1 1 ru title Главная
2 1 ru meta_title Главная
3 1 ru meta_description meta-описание главной страницы
4 1 ru meta_keywords
5 1 ru text <h1>Yona CMS</h1>\r\n<p>Yona CMS - система управления контентом с открытым исходным кодом. Написана на <a href="http://phalconphp.com/" target="_blank">Phalcon PHP Framework</a> (версия 1.3.x).</p>\r\n<p>Имеет удобную модульную структуру. Предназначена для разработки как простых сайтов, так и крупных порталов и веб-приложений. Благодаря простой конфигурации и архитектуре, может быть легко модифицирована под любую задачу.</p>\r\n<p>Официальный репозиторий на <a href="https://github.com/oleksandr-torosh/yona-cms" target="_blank">Github</a></p>\r\n<h2>Подзаголовок</h2>\r\n<p>Съешь еще этих мягких французских булок да выпей чаю. Съешь еще этих мягких французских булок да выпей чаю. Съешь еще этих мягких французских булок да выпей чаю. Съешь еще этих мягких французских булок да выпей чаю. Съешь еще этих мягких французских булок да выпей чаю. Съешь еще этих мягких французских булок да выпей чаю. </p>\r\n<h3>Под-подзаголовок</h3>\r\n<p>Список:</p>\r\n<ul>\r\n<li>Первый пункт</li>\r\n<li>Второй пукт<br />\r\n<ul>\r\n<li>Вложенный уровень второго пункта</li>\r\n<li>Еще один</li>\r\n</ul>\r\n</li>\r\n<li>Третий пункт</li>\r\n</ul>\r\n<p>Таблица</p>\r\n<table class="table" style="width: 100%;">\r\n<tbody>\r\n<tr><th>Заглавие</th><th>Заглавие</th><th>Заглавие</th></tr>\r\n<tr>\r\n<td>Текст в ячейке</td>\r\n<td>Текст в ячейке</td>\r\n<td>Текст в ячейке</td>\r\n</tr>\r\n<tr>\r\n<td>Текст в ячейке</td>\r\n<td>Текст в ячейке</td>\r\n<td>Текст в ячейке</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<p>Числовой список:</p>\r\n<ol>\r\n<li>Первый</li>\r\n<li>Второй</li>\r\n<li>Третий</li>\r\n</ol>
6 1 en title Homepage
7 1 en * TRIAL * Homepage
8 1 en meta_description meta-description of homepage
9 1 en meta_keywords
10 1 en text <h1>Yona CMS</h1>\r\n<p>Yona CMS - open source content management system. Written in <a href="http://phalconphp.com/" target="_blank">Phalcon PHP Framework</a> (version 1.3.x).</p>\r\n<p>Has a convenient modular structure. It is intended for the design of simple sites, and major portals and web applications. Thanks to its simple configuration and architecture, can be easily modified for any task.</p>\r\n<p>The official repository on <a href="https://github.com/oleksandr-torosh/yona-cms" target="_blank">Github</a></p>\r\n<h2>Subtitle</h2>\r\n<p>Proin aliquet eros vel magna semper facilisis. Nunc tellus urna, bibendum vitae malesuada vel, molestie non lectus. Suspendisse sit amet ante arcu. Maecenas interdum eu neque eu dapibus. Sed maximus elementum tortor at dapibus. Phasellus rhoncus odio vel suscipit dapibus. Nullam sed luctus mauris. Nunc blandit vitae nisl at malesuada. Sed ac est ut diam hendrerit sodales quis et massa. Proin aliquet vitae massa luctus ultricies. Nullam accumsan leo nibh, non varius tortor elementum auctor. Fusce sollicitudin a dui porttitor euismod. Ut at iaculis neque, nec finibus diam. Integer pharetra vehicula urna vitae imperdiet.</p>\r\n<h3>sub-subtitle</h3>\r\n<p>List:</p>\r\n<ul>\r\n<li>First item</li>\r\n<li>Second item<br />\r\n<ul>\r\n<li>Inner level of second item</li>\r\n<li>Another one</li>\r\n</ul>\r\n</li>\r\n<li>Third item</li>\r\n</ul>\r\n<p>Table</p>\r\n<table class="table" style="width: 100%;">\r\n<tbody>\r\n<tr><th>Header</th><th>Header</th><th>Header</th></tr>\r\n<tr>\r\n<td>Text in cell</td>\r\n<td>Text in cell</td>\r\n<td>Text in cell</td>\r\n</tr>\r\n<tr>\r\n<td>Text in cell</td>\r\n<td>Text in cell</td>\r\n<td>Text in cell</td>\r\n</tr>\r\n</tbody>\r\n</table>\r\n<p>Decimal list:</p>\r\n<ol>\r\n<li>First</li>\r\n<li>Second</li>\r\n<li>Third</li>\r\n</ol>
11 2 ru title * TRIAL
12 2 ru meta_title * TRIAL
13 2 ru meta_description
14 2 ru meta_keywords
15 2 ru text <h2>Контакты</h2>\r\n<p><a href="http://yonacms.com">http://yonacms.com</a></p>
16 2 en title Contacts
17 2 en meta_title Contacts
18 2 en meta_description
19 2 en meta_keywords
20 2 en text <h1>Contacts</h1>\r\n<p><a href="http://yonacms.com">http://yonacms.com</a></p>
21 1 uk title Головна
22 1 uk meta_title Головна
23 1 uk meta_description meta-description головної сторінки
24 1 uk meta_keywords
25 1 uk text * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL * TRIAL
26 2 uk title Контакти
27 2 uk meta_title Контакти
28 2 uk meta_description
29 2 uk meta_keywords
30 2 uk text <h1>Контакти</h1>\r\n<p><a href="http://yonacms.com">http://yonacms.com</a></p>
\.
--
-- TOC entry 2243 (class 0 OID 0)
-- Dependencies: 185
-- Name: page_translate_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('page_translate_id_seq', 31, false);
--
-- TOC entry 2202 (class 0 OID 183099)
-- Dependencies: 190
-- Data for Name: publication; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY publication (id, type_id, slug, created_at, updated_at, date, preview_inner, preview_src) FROM stdin;
1 1 phalcon-132-released 2014-08-22 10:33:26 2015-06-26 16:48:36 2014-08-19 00:00:00 0 * TRIAL * TRIAL * TRIAL * TRIAL
2 1 phalcon-community-hangout 2014-08-22 10:42:08 2015-06-26 16:48:44 2014-08-21 00:00:00 1 img/original/publication/0/2.jpg
3 2 builtwith-phalcon 2014-11-05 18:00:20 2015-06-26 16:48:53 2014-11-05 00:00:00 1 * TRIAL * TRIAL * TRIAL * TRIAL
4 2 * TRIAL * TRIA 2014-11-06 18:23:17 2015-06-26 16:49:02 2014-11-06 00:00:00 0 img/original/publication/0/4.jpg
5 1 new-modular-widgets-system 2015-04-29 10:42:49 2015-06-30 17:12:13 2015-06-05 14:32:44 0 * TRIAL * TRIAL * TRIAL * TRIAL
\.
--
-- TOC entry 2244 (class 0 OID 0)
-- Dependencies: 189
-- Name: publication_id_seq; Type: SEQUENCE SET; Schema: public; Owner: postgres
--
SELECT pg_catalog.setval('publication_id_seq', 6, false);
--
-- TOC entry 2204 (class 0 OID 183109)
-- Dependencies: 192
-- Data for Name: publication_translate; Type: TABLE DATA; Schema: public; Owner: postgres
--
COPY publication_translate (id, foreign_id, lang, key, value) FROM stdin;
1 1 ru title Релиз Phalcon 1.3.2
2 1 ru meta_title Релиз Phalcon 1.3.2
3 1 ru * TRIAL * TRIAL
4 1 ru meta_keywords
5 1 ru text <p>Релиз Phalcon 1.3.2. Дальше текст на английском...</p>\r\n<p>We are today releasing the much awaited 1.3.2 version. </p>\r\n<p>This version has a ton of contributions from our community and fixes to the framework. We thank everyone that has worked on this release, especially with their contributions both to 1.3.2 and our work in progress 2.0.0.</p>\r\n<p>Many thanks to dreamsxin, <a href="https://github.com/mruz">mruz</a>, <a href="https://github.com/kjdev">kjdev</a>, <a href="https://github.com/Cinderella-Man">Cinderella-Man</a>, <a href="https://github.com/andreadelfino">andreadelfino</a>, <a href="https://github.com/kfll">kfll</a>, <a href="https://github.com/brandonlamb">brandonlamb</a>, <a href="https://github.com/zacek">zacek</a>, <a href="https://github.com/joni">joni</a>, <a href="https://github.com/wandersonwhcr">wandersonwhcr</a>, <a href="https://github.com/kevinhatry">kevinhatry</a>, <a href="https://github.com/alkana">alkana</a> and many others that have contributed either on <a href="https://github.com/phalcon/cphalcon">Github or through discussion in our </a><a href="http://forum.phalconphp.com/">forum</a>.</p>\r\n<p>The changelog can be found <a href="https://github.com/phalcon/cphalcon/blob/master/CHANGELOG">here</a>.</p>\r\n<p>We also have a number of pull requests that have not made it to 1.3.2 but will be included to 1.3.3. We need to make sure that the fix or feature that each pull request offers are present both in 1.3.3 but also in 2.0.0</p>\r\n<p>A big thank you once again to our community! You guys are awesome!</p>\r\n<p><3 Phalcon Team</p>
6 2 ru title Видеовстреча сообщества Phalcon
7 2 ru meta_title Видеовстреча сообщества Phalcon
8 2 ru meta_description
9 2 ru meta_keywords
10 2 ru text <p>Видеовстреча сообщества Phalcon. Дальше текст на английском...</p>\r\n<p>Yesterday (2014-04-05) we had our first Phalcon community hangout. The main purpose of the hangout was to meet the community, discuss about what Phalcon is and what our future steps are, and hear news, concerns, success stories from the community itself.</p>\r\n<p>We are excited to announce that the first Phalcon community hangout was a great success!</p>\r\n<p>We had an awesome turnout from all around the world, with members of the community filling the hangout (10 concurrent users) and more viewing online, asking questions and interacting with the team.</p>\r\n<p>We talked about where we are, where we came from and what the future steps are with Zephir and Phalcon 2.0. Contributions, bugs and NFRs were also topics in our discussion, as well as who are team and how Phalcon is funded.</p>\r\n<p>More hangouts will be scheduled in the near future, hopefully making this a regular event for our community. We will also cater for members of the community that are not English speakers, by creating hangouts for Spanish speaking, Russian etc. The goal is to engage as many members as possible!</p>\r\n<p>The love and trust you all have shown to our framework is what drives us to make it better, push performance, introduce more features and make Phalcon the best PHP framework there is. </p>\r\n<p>For those that missed it, the video is below.</p>
11 1 en title Phalcon 1.3.2 Released
12 1 en meta_title * TRIAL * TRIAL * TRIA
13 1 en meta_description
14 1 en meta_keywords
15 1 en text <p>We are today releasing the much awaited 1.3.2 version. </p>\r\n<p>This version has a ton of contributions from our community and fixes to the framework. We thank everyone that has worked on this release, especially with their contributions both to 1.3.2 and our work in progress 2.0.0.</p>\r\n<p>Many thanks to dreamsxin, <a href="https://github.com/mruz">mruz</a>, <a href="https://github.com/kjdev">kjdev</a>, <a href="https://github.com/Cinderella-Man">Cinderella-Man</a>, <a href="https://github.com/andreadelfino">andreadelfino</a>, <a href="https://github.com/kfll">kfll</a>, <a href="https://github.com/brandonlamb">brandonlamb</a>, <a href="https://github.com/zacek">zacek</a>, <a href="https://github.com/joni">joni</a>, <a href="https://github.com/wandersonwhcr">wandersonwhcr</a>, <a href="https://github.com/kevinhatry">kevinhatry</a>, <a href="https://github.com/alkana">alkana</a> and many others that have contributed either on <a href="https://github.com/phalcon/cphalcon">Github or through discussion in our </a><a href="http://forum.phalconphp.com/">forum</a>.</p>\r\n<p>The changelog can be found <a href="https://github.com/phalcon/cphalcon/blob/master/CHANGELOG">here</a>.</p>\r\n<p>We also have a number of pull requests that have not made it to 1.3.2 but will be included to 1.3.3. We need to make sure that the fix or feature that each pull request offers are present both in 1.3.3 but also in 2.0.0</p>\r\n<p>A big thank you once again to our community! You guys are awesome!</p>\r\n<p><3 Phalcon Team</p>
16 1 uk title Реліз Phalcon 1.3.2
17 1 uk meta_title * TRIAL * TRIAL * T
18 1 uk meta_description
19 1 uk meta_keywords
20 1 uk text <p>Реліз Phalcon 1.3.2. Далі текст англійською...</p>\r\n<p>We are today releasing the much awaited 1.3.2 version. </p>\r\n<p>This version has a ton of contributions from our community and fixes to the framework. We thank everyone that has worked on this release, especially with their contributions both to 1.3.2 and our work in progress 2.0.0.</p>\r\n<p>Many thanks to dreamsxin, <a href="https://github.com/mruz">mruz</a>, <a href="https://github.com/kjdev">kjdev</a>, <a href="https://github.com/Cinderella-Man">Cinderella-Man</a>, <a href="https://github.com/andreadelfino">andreadelfino</a>, <a href="https://github.com/kfll">kfll</a>, <a href="https://github.com/brandonlamb">brandonlamb</a>, <a href="https://github.com/zacek">zacek</a>, <a href="https://github.com/joni">joni</a>, <a href="https://github.com/wandersonwhcr">wandersonwhcr</a>, <a href="https://github.com/kevinhatry">kevinhatry</a>, <a href="https://github.com/alkana">alkana</a> and many others that have contributed either on <a href="https://github.com/phalcon/cphalcon">Github or through discussion in our </a><a href="http://forum.phalconphp.com/">forum</a>.</p>\r\n<p>The changelog can be found <a href="https://github.com/phalcon/cphalcon/blob/master/CHANGELOG">here</a>.</p>\r\n<p>We also have a number of pull requests that have not made it to 1.3.2 but will be included to 1.3.3. We need to make sure that the fix or feature that each pull request offers are present both in 1.3.3 but also in 2.0.0</p>\r\n<p>A big thank you once again to our community! You guys are awesome!</p>\r\n<p><3 Phalcon Team</p>
21 2 en title * TRIAL * TRIAL * TRIAL *
22 2 en meta_title * TRIAL * TRIAL * TRIAL *
23 2 en meta_description