diff --git a/src/db_utils/db_creation.py b/src/db_utils/db_creation.py index 883deb7838b82adb4dccc2700356891731c4351e..7a23303153909757527467ce8fc9e20818f4336a 100755 --- a/src/db_utils/db_creation.py +++ b/src/db_utils/db_creation.py @@ -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]),