1604 add covid jobs and covid financial categories#539
Conversation
jjfreund
left a comment
There was a problem hiding this comment.
Looks good. One thing -- if you could separate your changes into another file that would be helpful, as we're not going to rerun the entirety of the script. Also please add each service to the parent category as well, that's required for search to work properly.
|
|
||
|
|
||
| -- Covid Finance Category and Subcategories | ||
| delete from category_relationships(parent_id,child_id) values (1000003,1100010); |
There was a problem hiding this comment.
delete from category_relationships where parent_id=1000003 and child_id=1100010;
|
|
||
| -- Covid Finance Category and Subcategories | ||
| delete from category_relationships(parent_id,child_id) where parent_id=1000003 and child_id=1100010; | ||
| delete from category_services where category_id=1000003 and service_id=1070 |
There was a problem hiding this comment.
table name is categories_services, and you are missing a semicolon.
…oved covid-shelter.sql from this branch
| (1000009, '04-OCT-20', '04-OCT-20', 'Covid-shelter', 't', null, 'f'); | ||
|
|
||
| insert into categories (id, created_at, updated_at, name, top_level, vocabulary, featured) values | ||
| (1100035, '04-OCT-20', '04-OCT-20', 'Job Boa', 'f', null, 'f'); No newline at end of file |
There was a problem hiding this comment.
should be a newline at the end of the file.
There was a problem hiding this comment.
Also why don't you pull out the shelter stuff until it's complete so I can merge the rest in?
There was a problem hiding this comment.
Oh did this not get removed from this branch? I'm looking at db/sql/ and I don't still see it...
Ran SQL script on staging to add new Covid-jobs category and modify Covid-finances category to match with new hierarchy, Added Covid Jobs and Covid Finances to db populate script in local dev.