|
@ -44,7 +44,7 @@ dbFile = "./filer.db" # sqlite db file |
|
|
# CREATE TABLE IF NOT EXISTS filemeta ( |
|
|
# CREATE TABLE IF NOT EXISTS filemeta ( |
|
|
# dirhash BIGINT COMMENT 'first 64 bits of MD5 hash value of directory field', |
|
|
# dirhash BIGINT COMMENT 'first 64 bits of MD5 hash value of directory field', |
|
|
# name VARCHAR(1000) BINARY COMMENT 'directory or file name', |
|
|
# name VARCHAR(1000) BINARY COMMENT 'directory or file name', |
|
|
# directory TEXT COMMENT 'full path to parent directory', |
|
|
|
|
|
|
|
|
# directory TEXT BINARY COMMENT 'full path to parent directory', |
|
|
# meta LONGBLOB, |
|
|
# meta LONGBLOB, |
|
|
# PRIMARY KEY (dirhash, name) |
|
|
# PRIMARY KEY (dirhash, name) |
|
|
# ) DEFAULT CHARSET=utf8; |
|
|
# ) DEFAULT CHARSET=utf8; |
|
@ -69,7 +69,7 @@ createTable = """ |
|
|
CREATE TABLE IF NOT EXISTS ` + "`%s`" + ` ( |
|
|
CREATE TABLE IF NOT EXISTS ` + "`%s`" + ` ( |
|
|
dirhash BIGINT, |
|
|
dirhash BIGINT, |
|
|
name VARCHAR(1000) BINARY, |
|
|
name VARCHAR(1000) BINARY, |
|
|
directory TEXT, |
|
|
|
|
|
|
|
|
directory TEXT BINARY, |
|
|
meta LONGBLOB, |
|
|
meta LONGBLOB, |
|
|
PRIMARY KEY (dirhash, name) |
|
|
PRIMARY KEY (dirhash, name) |
|
|
) DEFAULT CHARSET=utf8; |
|
|
) DEFAULT CHARSET=utf8; |
|
|