-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopulate_db.pgsql
27 lines (24 loc) · 1.2 KB
/
populate_db.pgsql
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
INSERT INTO taskify_task (name, description, status, dynamic_fields)
SELECT 'Task' || round(random() * 1000000),
'A description.',
'Created',
'[{"name": "effort", "type": "int", "value": 1}, {"name": "category", "type": "string", "value": "epic"}]'
FROM generate_series(1, 250000);
INSERT INTO taskify_task (name, description, status, dynamic_fields)
SELECT 'Task' || round(random() * 1000000),
'A description.',
'Opened',
'[{"name": "effort", "type": "int", "value": 2}, {"name": "category", "type": "string", "value": "feature"}]'
FROM generate_series(1, 250000);
INSERT INTO taskify_task (name, description, status, dynamic_fields)
SELECT 'Task' || round(random() * 1000000),
'A description.',
'In Progress',
'[{"name": "effort", "type": "int", "value": 3}, {"name": "category", "type": "string", "value": "story"}]'
FROM generate_series(1, 250000);
INSERT INTO taskify_task (name, description, status, dynamic_fields)
SELECT 'Task' || round(random() * 1000000),
'A description.',
'Completed',
'[{"name": "effort", "type": "int", "value": 4}, {"name": "category", "type": "string", "value": "task"}]'
FROM generate_series(1, 250000);