From 6d2ca54590314b2442a60901d33e6d429bb9ff84 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Arturo=20Filast=C3=B2?= Date: Tue, 7 Aug 2018 19:32:59 +0200 Subject: [PATCH] Minor stylistic changes to schema --- data/migrations/1_create_msmt_results.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/migrations/1_create_msmt_results.sql b/data/migrations/1_create_msmt_results.sql index 4992704..3d06340 100644 --- a/data/migrations/1_create_msmt_results.sql +++ b/data/migrations/1_create_msmt_results.sql @@ -129,7 +129,7 @@ CREATE TABLE `measurements` ( CREATE TABLE `urls` ( `id` INTEGER PRIMARY KEY AUTOINCREMENT, - `input` VARCHAR(255) NOT NULL, + `url` VARCHAR(255) NOT NULL, -- XXX is this long enough? `category_code` VARCHAR(5) NOT NULL, -- The citizenlab category code for the -- site. We use the string NONE to denote -- no known category code. @@ -161,7 +161,7 @@ CREATE TABLE `networks` ( -- 0000:0000:0000:0000:0000:0000:0000:0000, -- which is 39 chars. `asn` INT(4) NOT NULL, - `country` VARCHAR(2) NOT NULL, -- The two letter country code + `country_code` VARCHAR(2) NOT NULL, -- The two letter country code ); -- +migrate StatementEnd