Skip to content

Commit

Permalink
allow longer urls; closes #92
Browse files Browse the repository at this point in the history
  • Loading branch information
wo committed Feb 21, 2017
1 parent 276c8e5 commit bc24d1a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions setup.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ DROP TABLE IF EXISTS sources;
CREATE TABLE sources (
source_id INT(11) UNSIGNED NOT NULL auto_increment,
sourcetype VARCHAR(16) NOT NULL DEFAULT 'personal',
url VARCHAR(512) NOT NULL,
url VARCHAR(1024) NOT NULL,
urlhash CHAR(32) NOT NULL,
status SMALLINT(6) DEFAULT 0,
found_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
Expand All @@ -19,7 +19,7 @@ CREATE TABLE sources (
DROP TABLE IF EXISTS links;
CREATE TABLE links (
link_id INT(11) UNSIGNED NOT NULL auto_increment,
url VARCHAR(512) NOT NULL,
url VARCHAR(1024) NOT NULL,
urlhash CHAR(32) NOT NULL,
status SMALLINT(6) DEFAULT 0,
source_id INT(11) UNSIGNED NOT NULL,
Expand All @@ -40,7 +40,7 @@ CREATE TABLE docs (
doc_id INT(11) UNSIGNED NOT NULL auto_increment,
status SMALLINT(6) DEFAULT 1,
doctype VARCHAR(16) NOT NULL,
url VARCHAR(512) NOT NULL,
url VARCHAR(1024) NOT NULL,
urlhash CHAR(32) NOT NULL,
filetype VARCHAR(8) DEFAULT NULL,
filesize INT(10) UNSIGNED DEFAULT NULL,
Expand All @@ -51,7 +51,7 @@ CREATE TABLE docs (
abstract TEXT DEFAULT NULL,
numwords MEDIUMINT UNSIGNED DEFAULT NULL,
numpages SMALLINT(6) UNSIGNED DEFAULT NULL,
source_url VARCHAR(512) DEFAULT NULL,
source_url VARCHAR(1024) DEFAULT NULL,
source_name VARCHAR(255) DEFAULT NULL,
meta_confidence TINYINT UNSIGNED DEFAULT NULL,
is_paper TINYINT UNSIGNED DEFAULT NULL,
Expand Down

0 comments on commit bc24d1a

Please sign in to comment.