Skip to content
Snippets Groups Projects
Commit 52f73b13 authored by alapendr's avatar alapendr
Browse files

db_utils/db_creation.py: change the data type of distance from varchar to int

parent f6f97b98
No related branches found
No related tags found
No related merge requests found
......@@ -124,7 +124,7 @@ def create_cin_exon_interaction_table(conn: sqlite3.Connection) -> None:
[exon2] VARCHAR(30) NOT NULL,
[id_project] INT NOT NULL,
[level] VARCHAR(25) NOT NULL,
[distance] VARCHAR(30),
[distance] INT,
PRIMARY KEY ([id]),
FOREIGN KEY ([exon1]) REFERENCES cin_exon([id]),
FOREIGN KEY ([exon2]) REFERENCES cin_exon([id]),
......@@ -147,7 +147,7 @@ def create_cin_gene_interaction_table(conn: sqlite3.Connection) -> None:
[gene2] INT NOT NULL,
[id_project] INT NOT NULL,
[level] VARCHAR(25) NOT NULL,
[distance] FLOAT,
[distance] INT,
PRIMARY KEY ([id]),
FOREIGN KEY ([gene1]) REFERENCES cin_gene([id]),
FOREIGN KEY ([gene2]) REFERENCES cin_gene([id]),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment