Skip to content

Commit e9fd9c1

Browse files
committed
CDR database seed fix
1 parent a4441c3 commit e9fd9c1

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

db/seeds/cdr/pgq.sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
select pgq.create_queue('cdr_billing');
22
select pgq.register_consumer('cdr_billing','cdr_billing');
3+
select pgq.create_queue('cdr_streaming');

db/seeds/cdr/sys.sql

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,19 @@ INSERT INTO cdr_tables VALUES (5, 'cdr.cdr_201411', true, true, '2014-11-01', '2
3939
INSERT INTO cdr_tables VALUES (6, 'cdr.cdr_201710', true, true, '2017-10-01', '2017-11-01', true);
4040
INSERT INTO cdr_tables VALUES (7, 'cdr.cdr_201709', true, true, '2017-09-01', '2017-10-01', true);
4141
INSERT INTO cdr_tables VALUES (8, 'cdr.cdr_201708', true, true, '2017-08-01', '2017-09-01', true);
42-
42+
INSERT INTO cdr_tables VALUES (9, 'cdr.cdr_201712', true, true, '2017-12-01', '2018-01-01', true);
43+
INSERT INTO cdr_tables VALUES (10, 'cdr.cdr_201801', true, true, '2018-01-01', '2018-02-01', true);
44+
INSERT INTO cdr_tables VALUES (11, 'cdr.cdr_201802', true, true, '2018-02-01', '2018-03-01', true);
45+
INSERT INTO cdr_tables VALUES (12, 'cdr.cdr_201803', true, true, '2018-03-01', '2018-04-01', true);
46+
INSERT INTO cdr_tables VALUES (13, 'cdr.cdr_201804', true, true, '2018-04-01', '2018-05-01', true);
4347

4448
--
4549
-- TOC entry 2514 (class 0 OID 0)
4650
-- Dependencies: 295
4751
-- Name: cdr_tables_id_seq; Type: SEQUENCE SET; Schema: sys; Owner: yeti
4852
--
4953

50-
SELECT pg_catalog.setval('cdr_tables_id_seq', 8, true);
54+
SELECT pg_catalog.setval('cdr_tables_id_seq', 13, true);
5155

5256

5357
--

0 commit comments

Comments
 (0)