Skip to content
Snippets Groups Projects
Commit 7e9ac5d6 authored by Jean-Philippe Laverdure's avatar Jean-Philippe Laverdure
Browse files

Slight update to README to better define hstore extension activation

parent ef9d5a58
No related branches found
No related tags found
No related merge requests found
......@@ -29,13 +29,14 @@ gulp
# NB: gulp will keep running in "listening" mode, so open a new shell to keep going
# DB setup
## (login to postgresql server)
CREATE USER iric_data_user WITH PASSWORD 's0me_new_p4ssword';
CREATE DATABASE iric_data_dev;
GRANT ALL PRIVILEGES ON DATABASE iric_data_dev TO iric_data_user;
## Project requires the hstore extension be activated
### Need to be admin on postgresql
## (login to postgresql server)
CREATE USER iric_data_user WITH PASSWORD 's0me_new_p4ssword';
CREATE DATABASE iric_data_dev;
GRANT ALL PRIVILEGES ON DATABASE iric_data_dev TO iric_data_user;
## Project requires the hstore extension be activated on the project's database
### Need to be admin on postgresql
\c iric_data_dev
CREATE EXTENSION IF NOT EXISTS hstore;
# END DB setup
......@@ -117,17 +118,17 @@ django-admin compilemessages
```
## DB Migrations
[Django documentation](https://docs.djangoproject.com/en/2.2/ref/django-admin/#migrate)
[Django documentation](https://docs.djangoproject.com/en/2.2/ref/django-admin/#migrate)
tl;dr
```bash
python manage.py migrate portal [migration_name]
```
If migration_name is omitted, **ALL** migrations will be applied.
Specify a migration_name to apply migrations **up to that one and no further**.
If migration_name is omitted, **ALL** migrations will be applied.
Specify a migration_name to apply migrations **up to that one and no further**.
This can be used to un-apply a migration.
## Links to various resources used in this project
[Private Storage](https://pypi.org/project/django-private-storage/)
[Private Storage](https://pypi.org/project/django-private-storage/)
[PostgreSQL HStore](https://docs.djangoproject.com/en/2.2/ref/contrib/postgres/fields/#hstorefield)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment