Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
iric-data
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bioinfo_iric
iric-data
Commits
7e9ac5d6
Commit
7e9ac5d6
authored
5 years ago
by
Jean-Philippe Laverdure
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+12
-11
12 additions, 11 deletions
README.md
with
12 additions
and
11 deletions
README.md
+
12
−
11
View file @
7e9ac5d6
...
...
@@ -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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment