summaryrefslogtreecommitdiff
path: root/schema.sql
diff options
context:
space:
mode:
authorHelmut Grohne <helmut@subdivi.de>2014-07-22 21:16:14 +0200
committerHelmut Grohne <helmut@subdivi.de>2014-07-22 21:16:14 +0200
commit95125e250b9e4a3023a6b769c372990530d1aa87 (patch)
treee53f5110c0177fe190c8cbcebf6e9a24c2e28439 /schema.sql
parentd48c3c208ee6ba54225b3eb68ce5c9f3c894bfa4 (diff)
downloaddebian-dedup-binaryfilename.tar.gz
store filenames as blobsbinaryfilename
To facilitate this importpkg.py decodes filenames using iso-8859-1. While this is not the encoding used for most filenames, decoding will never fail. Conversely, readyaml.py encodes to iso-8859-1 to undo the above effect. webapp.py cannot currently cope with the above change and is broken by this commit.
Diffstat (limited to 'schema.sql')
-rw-r--r--schema.sql2
1 files changed, 1 insertions, 1 deletions
diff --git a/schema.sql b/schema.sql
index 99ae7e5..ce36e09 100644
--- a/schema.sql
+++ b/schema.sql
@@ -10,7 +10,7 @@ CREATE TABLE content ( -- a file contained in a binary package
id INTEGER PRIMARY KEY,
pid INTEGER NOT NULL REFERENCES package(id) ON DELETE CASCADE,
-- which package the file is contained in
- filename TEXT NOT NULL,
+ filename BLOB NOT NULL,
size INTEGER NOT NULL);
CREATE TABLE function ( -- hash functions