From 52f73b133eb15c89d22ade58e9a795be150b0778 Mon Sep 17 00:00:00 2001
From: alapendr <audrey.lapendry@ens-lyon.fr>
Date: Fri, 25 Sep 2020 09:37:26 +0200
Subject: [PATCH] db_utils/db_creation.py: change the data type of distance
 from varchar to int

---
 src/db_utils/db_creation.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/db_utils/db_creation.py b/src/db_utils/db_creation.py
index 883deb78..7a233031 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]),
-- 
GitLab