Skip to content

Commit

Permalink
ontology column to dataset
Browse files Browse the repository at this point in the history
  • Loading branch information
mboudet committed Dec 6, 2021
1 parent e6b7cb9 commit a85f717
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
11 changes: 11 additions & 0 deletions askomics/libaskomics/Database.py
Expand Up @@ -198,6 +198,17 @@ def update_datasets_table(self):
except Exception:
pass

query = '''
ALTER TABLE datasets
ADD ontology boolean NULL
DEFAULT(0)
'''

try:
self.execute_sql_query(query)
except Exception:
pass

def create_integration_table(self):
"""Create the integration table"""
query = '''
Expand Down
3 changes: 2 additions & 1 deletion askomics/libaskomics/Dataset.py
Expand Up @@ -93,7 +93,8 @@ def save_in_db(self):
?,
NULL,
NULL,
NULL
NULL,
0
)
'''

Expand Down

0 comments on commit a85f717

Please sign in to comment.