From 39c5f0b4d25ec56dc60bee9ca72f83de6769baa4 Mon Sep 17 00:00:00 2001 From: GabrielTrettel Date: Fri, 22 Jan 2021 12:06:58 -0300 Subject: [PATCH] Removing "not null" attributes in Image fields from DB schema. --- src/app/database/db.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/database/db.js b/src/app/database/db.js index d7a07e9..03d2394 100644 --- a/src/app/database/db.js +++ b/src/app/database/db.js @@ -1,33 +1,33 @@ // FIXME: Refactor to our database ERM already combined const init_queries = [ - `CREATE TABLE IF NOT EXISTS FloodZones ( + `CREATE TABLE IF NOT EXISTS FloodZones ( Id integer PRIMARY KEY autoincrement, - Description text NOT NULL, - Images text NOT NULL, + Description text, + Images text, Latitude real NOT NULL, Longitude real NOT NULL, Passable INTERGER NOT NULL );`, - `CREATE TABLE IF NOT EXISTS Pluviometer ( + `CREATE TABLE IF NOT EXISTS Pluviometer ( Id integer PRIMARY KEY autoincrement, Date text NOT NULL, - Images text NOT NULL, + Images text, Latitude real NOT NULL, Longitude real NOT NULL, Precipitation real NOT NULL );`, - `CREATE TABLE IF NOT EXISTS RainLevel ( + `CREATE TABLE IF NOT EXISTS RainLevel ( Id integer PRIMARY KEY autoincrement, RainIdx INTEGER NOT NULL, - Images text NOT NULL, + Images text, Latitude real NOT NULL, Longitude real NOT NULL );`, - `CREATE TABLE IF NOT EXISTS RiverLevel ( + `CREATE TABLE IF NOT EXISTS RiverLevel ( Id integer PRIMARY KEY autoincrement, RiverIdx INTEGER NOT NULL, - Images text NOT NULL, + Images text, Latitude real NOT NULL, Longitude real NOT NULL );`,