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
67adabac
Commit
67adabac
authored
Oct 20, 2014
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fichiers initialisation bdd
parent
7bdcc022
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
0 deletions
+26
-0
init.py
init.py
+17
-0
init.sh
init.sh
+5
-0
init.sql
init.sql
+4
-0
No files found.
init.py
0 → 100755
View file @
67adabac
from
node.models
import
NodeType
#NodeType.objects.all().delete()
nodeTypeRoot
=
NodeType
(
name
=
"Root"
)
nodeTypeRoot
.
save
()
nodeTypeProject
=
NodeType
(
name
=
"Project"
)
nodeTypeProject
.
save
()
nodeTypeDocument
=
NodeType
(
name
=
"Document"
)
nodeTypeDocument
.
save
()
from
node.models
import
Language
import
pycountry
for
lang
in
pycountry
.
languages
:
try
:
Language
(
iso2
=
lang
.
alpha2
,
iso3
=
lang
.
terminology
,
fullname
=
lang
.
name
)
.
save
()
except
:
pass
init.sh
0 → 100755
View file @
67adabac
#!/bin/bash
psql
-d
gargandb
-f
database_zero.sql
./manage.py syncdb
./manage.py shell < init.py
init.sql
0 → 100644
View file @
67adabac
drop
schema
public
cascade
;
create
schema
public
;
create
extension
hstore
;
create
schema
authorization
gargantext
;
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