Commit e4d62c66 authored by Giraldo Garcia, C.G.'s avatar Giraldo Garcia, C.G.
Browse files

Update README.md

parent e5b0d0f8
......@@ -14,10 +14,20 @@ The data retrieval app from Coursera
# Preparations for the first use
* Download the tables from Coursera using the Coursera research exports tool to make sure that it works
* Do some modifications in the SQL files that come with it
* Do some modifications in the SQL files that come with the tables (the clickstream data comes without SQL files):
* Substitute the "CREATE TABLE" by "CREATE TABLE IF NOT EXISTS"
* Add unique here:
* remove the name of your organization from the SQL files:
* keep the modified files, they will shape your database
```sql
CREATE TABLE users (
<your_organization_id>_user_id VARCHAR(50) UNIQUE NOT NULL
...
```
* remove the id of your organization from the setup and load SQL files
* Keep in mind that one of the csv tables will require a change in name as well (later when the application runs)
* duplicate the setup SQL file, name it empty.sql and replace the "DROP TABLE IF EXISTS" by "DELETE FROM"
* Configure the config.json file
* The ID of your organization
* The date you want to start downloading data from in the field "fist_clickstream_date"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment