Capping-CPCA / Database

all code dealing with the database for this application environment
0 stars 1 forks source link

Populate DB with sensible data #95

Open Dr-Crow opened 7 years ago

Dr-Crow commented 7 years ago

Add all the classes, curricula, languages, employees, sites, etc. This makes it easier to test and just a nice experience when sourcing the DB.

algozine commented 7 years ago

The original requirement for this is coming from a discussion I had with Jimmy .. or rather an email first asking how it could be done, then a discussion. I want the names of the 28 classes from the full curriculum, and the 4 from the cornerstone class, and some of the other modified classes from the rehab location curricula that are NOW in the database running on .34 to be preserved so that we don't have to type them all in again. The Curricula would also be nice, but not needed, as we are changing some thing in that part of the DB (as I understand it). So... classes for sure.. maybe locations and curricula, employees for sure ... that would be great. Thanks

jrands commented 7 years ago

Marcos and I were discussing this as well, trigger functions would probably be the best way to populate the DB with some default values every time it is sourced. I'll begin working on this.

Dr-Crow commented 7 years ago

@jrands Hey john, no triggers needed. Lets use the /Test/ folder and populate some of this data using inserts. I will do a dump of the DB tonight or tomorrow to get all the classes that have been entered already.

marcosb1 commented 6 years ago

https://stackoverflow.com/questions/12815496/export-specific-rows-from-a-postgresql-table-as-insert-sql-script

marcosb1 commented 6 years ago

That should solve whatever issues you were having @Dr-Crow

Dr-Crow commented 6 years ago

Added data, waiting on employee info from new deploy or if the web team could get me that info. @michellecrawley ?

michelleburd commented 6 years ago

What kind of employee information do you need? Name, phone number, languages, classes taught, etc.? @Dr-Crow

Dr-Crow commented 6 years ago

Anything that would be good as some default values in the database. So if we want Gwen to be an employee, I need all that stuff associated with making one. Name, Languages, etc. If you go on .33 and create all the default employees with the right permissions, I can just grab them from the database.

michelleburd commented 6 years ago

None of us have any information on the employees that I know of. Iggi did data entry with participants, but we haven't seen or heard about anything regarding employees. If @algozine has this information or knows who has it, I can go ahead and create them once I get the data.

Scott123180 commented 6 years ago
Dr-Crow commented 6 years ago

@algozine I need to know what all the locations are and there addresses.

algozine commented 6 years ago

This is not a parking lot item.

CBadame commented 6 years ago

I'm pretty sure this was completed either way. @Dr-Crow?

algozine commented 6 years ago

Well, not exactly.. we still don't have location data although it was provided. Semi-related to that, the locations do not have physical addresses (though I would consider this portion of the request to be a parking lot item if we feel it's an easy thing for someone to update next semester). AND, the data isn't at the client yet ... so, technically that's the DB that matters!