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
babbc0c9
Commit
babbc0c9
authored
Mar 29, 2018
by
sim
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Alembic: move utilities to gargantext/utils
parent
323b1d6e
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
11 additions
and
11 deletions
+11
-11
README
alembic/README
+3
-3
159a5154362b_fix_bug_in_title_abstract_indexation.py
...ions/159a5154362b_fix_bug_in_title_abstract_indexation.py
+1
-1
1fb4405b59e1_add_english_fulltext_index_on_nodes_.py
...ions/1fb4405b59e1_add_english_fulltext_index_on_nodes_.py
+1
-1
492ab1373f8d_add_privileges_on_nodes_nodes_table.py
...sions/492ab1373f8d_add_privileges_on_nodes_nodes_table.py
+1
-1
4db5dcbe4bc7_bootstrap_access_control_system.py
.../versions/4db5dcbe4bc7_bootstrap_access_control_system.py
+1
-1
601e9d9baa4c_add_occ_hist_occ_hist_part_functions.py
...ions/601e9d9baa4c_add_occ_hist_occ_hist_part_functions.py
+1
-1
73112a361617_optimize_title_abstract_indexation.py
...rsions/73112a361617_optimize_title_abstract_indexation.py
+1
-1
cceddcb46e27_add_api_documents_view.py
alembic/versions/cceddcb46e27_add_api_documents_view.py
+1
-1
d77f0a598ad0_map_database_access_control_to_django_.py
...ns/d77f0a598ad0_map_database_access_control_to_django_.py
+1
-1
alembic.py
gargantext/utils/alembic.py
+0
-0
No files found.
alembic/README
View file @
babbc0c9
...
@@ -78,7 +78,7 @@ ReplaceableObject recipe (see Alembic documentation).
...
@@ -78,7 +78,7 @@ ReplaceableObject recipe (see Alembic documentation).
To create, drop or modify such object you need to make a ReplaceableObject
To create, drop or modify such object you need to make a ReplaceableObject
instance, and then use create_*, drop_* or replace_* method of alembic.op.
instance, and then use create_*, drop_* or replace_* method of alembic.op.
Conversion between ReplaceableObject and SQL is implemented in
Conversion between ReplaceableObject and SQL is implemented in
gargantext/util/alembic.py.
gargantext/util
s
/alembic.py.
* Views: create_view(ReplaceableObject(<name>, <query>))
* Views: create_view(ReplaceableObject(<name>, <query>))
* Roles: create_role(ReplaceableObject(<name>, <options>))
* Roles: create_role(ReplaceableObject(<name>, <options>))
...
@@ -90,7 +90,7 @@ gargantext/util/alembic.py.
...
@@ -90,7 +90,7 @@ gargantext/util/alembic.py.
Here is an example with a stored procedure:
Here is an example with a stored procedure:
...
...
from gargantext.util.alembic import ReplaceableObject
from gargantext.util
s
.alembic import ReplaceableObject
revision = '08230100f512'
revision = '08230100f512'
...
...
...
@@ -107,7 +107,7 @@ Here is an example with a stored procedure:
...
@@ -107,7 +107,7 @@ Here is an example with a stored procedure:
To modify this stored procedure in a later revision:
To modify this stored procedure in a later revision:
...
...
from gargantext.util.alembic import ReplaceableObject
from gargantext.util
s
.alembic import ReplaceableObject
my_function_sp = ReplaceableObject(
my_function_sp = ReplaceableObject(
"my_function()", "RETURNS integer AS $$ SELECT 43 $$ LANGUAGE sql")
"my_function()", "RETURNS integer AS $$ SELECT 43 $$ LANGUAGE sql")
...
...
alembic/versions/159a5154362b_fix_bug_in_title_abstract_indexation.py
View file @
babbc0c9
...
@@ -7,7 +7,7 @@ Create Date: 2017-09-18 18:00:26.055335
...
@@ -7,7 +7,7 @@ Create Date: 2017-09-18 18:00:26.055335
"""
"""
from
alembic
import
op
from
alembic
import
op
import
sqlalchemy
as
sa
import
sqlalchemy
as
sa
from
gargantext.util.alembic
import
ReplaceableObject
from
gargantext.util
s
.alembic
import
ReplaceableObject
# revision identifiers, used by Alembic.
# revision identifiers, used by Alembic.
...
...
alembic/versions/1fb4405b59e1_add_english_fulltext_index_on_nodes_.py
View file @
babbc0c9
...
@@ -8,7 +8,7 @@ Create Date: 2017-09-13 16:31:36.926692
...
@@ -8,7 +8,7 @@ Create Date: 2017-09-13 16:31:36.926692
from
alembic
import
op
from
alembic
import
op
import
sqlalchemy
as
sa
import
sqlalchemy
as
sa
from
sqlalchemy_utils.types
import
TSVectorType
from
sqlalchemy_utils.types
import
TSVectorType
from
gargantext.util.alembic
import
ReplaceableObject
from
gargantext.util
s
.alembic
import
ReplaceableObject
# revision identifiers, used by Alembic.
# revision identifiers, used by Alembic.
...
...
alembic/versions/492ab1373f8d_add_privileges_on_nodes_nodes_table.py
View file @
babbc0c9
...
@@ -7,7 +7,7 @@ Create Date: 2018-03-28 19:41:26.148413
...
@@ -7,7 +7,7 @@ Create Date: 2018-03-28 19:41:26.148413
"""
"""
from
alembic
import
op
from
alembic
import
op
import
sqlalchemy
as
sa
import
sqlalchemy
as
sa
from
gargantext.util.alembic
import
ReplaceableObject
from
gargantext.util
s
.alembic
import
ReplaceableObject
# revision identifiers, used by Alembic.
# revision identifiers, used by Alembic.
...
...
alembic/versions/4db5dcbe4bc7_bootstrap_access_control_system.py
View file @
babbc0c9
...
@@ -7,7 +7,7 @@ Create Date: 2017-10-06 17:23:27.765318
...
@@ -7,7 +7,7 @@ Create Date: 2017-10-06 17:23:27.765318
"""
"""
from
alembic
import
op
from
alembic
import
op
import
sqlalchemy
as
sa
import
sqlalchemy
as
sa
from
gargantext.util.alembic
import
ReplaceableObject
from
gargantext.util
s
.alembic
import
ReplaceableObject
# revision identifiers, used by Alembic.
# revision identifiers, used by Alembic.
...
...
alembic/versions/601e9d9baa4c_add_occ_hist_occ_hist_part_functions.py
View file @
babbc0c9
...
@@ -7,7 +7,7 @@ Create Date: 2017-07-06 10:52:16.161118
...
@@ -7,7 +7,7 @@ Create Date: 2017-07-06 10:52:16.161118
"""
"""
from
alembic
import
op
from
alembic
import
op
import
sqlalchemy
as
sa
import
sqlalchemy
as
sa
from
gargantext.util.alembic
import
ReplaceableObject
from
gargantext.util
s
.alembic
import
ReplaceableObject
# revision identifiers, used by Alembic.
# revision identifiers, used by Alembic.
...
...
alembic/versions/73112a361617_optimize_title_abstract_indexation.py
View file @
babbc0c9
...
@@ -7,7 +7,7 @@ Create Date: 2017-09-15 14:14:51.737963
...
@@ -7,7 +7,7 @@ Create Date: 2017-09-15 14:14:51.737963
"""
"""
from
alembic
import
op
from
alembic
import
op
import
sqlalchemy
as
sa
import
sqlalchemy
as
sa
from
gargantext.util.alembic
import
ReplaceableObject
from
gargantext.util
s
.alembic
import
ReplaceableObject
# revision identifiers, used by Alembic.
# revision identifiers, used by Alembic.
...
...
alembic/versions/cceddcb46e27_add_api_documents_view.py
View file @
babbc0c9
...
@@ -7,7 +7,7 @@ Create Date: 2018-01-24 16:11:57.032715
...
@@ -7,7 +7,7 @@ Create Date: 2018-01-24 16:11:57.032715
"""
"""
from
alembic
import
op
from
alembic
import
op
import
sqlalchemy
as
sa
import
sqlalchemy
as
sa
from
gargantext.util.alembic
import
ReplaceableObject
from
gargantext.util
s
.alembic
import
ReplaceableObject
# revision identifiers, used by Alembic.
# revision identifiers, used by Alembic.
...
...
alembic/versions/d77f0a598ad0_map_database_access_control_to_django_.py
View file @
babbc0c9
...
@@ -7,7 +7,7 @@ Create Date: 2017-10-12 15:23:40.481825
...
@@ -7,7 +7,7 @@ Create Date: 2017-10-12 15:23:40.481825
"""
"""
from
alembic
import
op
from
alembic
import
op
import
sqlalchemy
as
sa
import
sqlalchemy
as
sa
from
gargantext.util.alembic
import
ReplaceableObject
from
gargantext.util
s
.alembic
import
ReplaceableObject
# revision identifiers, used by Alembic.
# revision identifiers, used by Alembic.
...
...
gargantext/util/alembic.py
→
gargantext/util
s
/alembic.py
View file @
babbc0c9
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