From eccc2159c19911b7560162f5d923826dccd2389b Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Mon, 2 Oct 2006 21:25:47 +0000 Subject: [PATCH] Oops--CSL table needs to be defined in scrapers.sql too. (The problem with the current system is that any local translators or styles will be wiped out on upgrades (though not auto-updates), but the solution for that is probably to just offer an SQL file that the user can put custom SQL statements in to be run on upgrades (sorta the same idea as user.js in Firefox). Will deal with that at a later date, though.) --- scrapers.sql | 12 +++++++++++- system.sql | 8 -------- 2 files changed, 11 insertions(+), 9 deletions(-) diff --git a/scrapers.sql b/scrapers.sql index 0446c45228..40c95836fa 100644 --- a/scrapers.sql +++ b/scrapers.sql @@ -1,4 +1,4 @@ --- 93 +-- 94 DROP TABLE IF EXISTS translators; CREATE TABLE translators ( @@ -16,6 +16,16 @@ CREATE TABLE translators ( DROP INDEX IF EXISTS translators_type; CREATE INDEX translators_type ON translators(translatorType); + +DROP TABLE IF EXISTS csl; +CREATE TABLE csl ( + cslID TEXT PRIMARY KEY, + updated DATETIME, + title TEXT, + csl TEXT +); + + -- Set the following timestamp to the most recent scraper update date REPLACE INTO "version" VALUES ('repository', STRFTIME('%s', '2006-10-01 17:00:00')); diff --git a/system.sql b/system.sql index 684ec2394d..4c23b9d3c8 100644 --- a/system.sql +++ b/system.sql @@ -102,14 +102,6 @@ FOREIGN KEY (transactionID) REFERENCES transactions(transactionID) ); - DROP TABLE IF EXISTS csl; - CREATE TABLE csl ( - cslID TEXT PRIMARY KEY, - updated DATETIME, - title TEXT, - csl TEXT - ); - INSERT INTO "fieldFormats" VALUES(1, '.*', 0); INSERT INTO "fieldFormats" VALUES(2, '[0-9]*', 1);