Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
2c1b3561
Commit
2c1b3561
authored
Apr 14, 2015
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ADMIN] bdd owner to gargantua.
parent
215e94c5
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
29 additions
and
2 deletions
+29
-2
README.rst
init/README.rst
+2
-2
3-postgreSQL.sql
init/install/3-postgreSQL.sql
+23
-0
changeOwner.sh
init/sql/changeOwner.sh
+4
-0
hstore2jsonb.sql
init/sql/hstore2jsonb.sql
+0
-0
index.sql
init/sql/index.sql
+0
-0
init.sql
init/sql/init.sql
+0
-0
init2.sql
init/sql/init2.sql
+0
-0
No files found.
init/README.rst
View file @
2c1b3561
...
@@ -39,10 +39,10 @@ In PostreSQL
...
@@ -39,10 +39,10 @@ In PostreSQL
3) psql
3) psql
4) CREATE USER
alexandre
WITH PASSWORD 'C8kdcUrAQy66U';
4) CREATE USER
gargantua
WITH PASSWORD 'C8kdcUrAQy66U';
(see gargantext_web/settings.py, DATABASES = { ... })
(see gargantext_web/settings.py, DATABASES = { ... })
5) CREATE DATABASE gargandb WITH OWNER
alexandre
;
5) CREATE DATABASE gargandb WITH OWNER
gargantua
;
6) Ctrl + D
6) Ctrl + D
...
...
init/install/3-postgreSQL.sql
0 → 100644
View file @
2c1b3561
In
PostreSQL
-------------
1
)
Ensure
postgres
is
started
:
sudo
/
etc
/
init
.
d
/
postgresql
start
2
)
sudo
su
postgres
3
)
psql
4
)
CREATE
USER
gargantua
WITH
PASSWORD
'C8kdcUrAQy66U'
;
(
see
gargantext_web
/
settings
.
py
,
DATABASES
=
{
...
}
)
5
)
CREATE
DATABASE
gargandb
WITH
OWNER
gargantua
;
6
)
Ctrl
+
D
7
)
psql
gargandb
6
)
CREATE
EXTENSION
hstore
;
7
)
Ctrl
+
D
init/sql/changeOwner.sh
0 → 100644
View file @
2c1b3561
for
tbl
in
`
psql
-qAt
-c
"select tablename from pg_tables where schemaname = 'public';"
gargandb
`
;
do
psql
-c
"alter table
$tbl
owner to gargantua"
gargandb
;
done
init/hstore2jsonb.sql
→
init/
sql/
hstore2jsonb.sql
View file @
2c1b3561
File moved
init/index.sql
→
init/
sql/
index.sql
View file @
2c1b3561
File moved
init/init.sql
→
init/
sql/
init.sql
View file @
2c1b3561
File moved
init/init2.sql
→
init/
sql/
init2.sql
View file @
2c1b3561
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment