]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
Update magic-folder db schema to use REAL instead of NUMBER of TIMESTAMP 2438.magic-folder-stable.9
authorDavid Stainton <dstainton415@gmail.com>
Tue, 19 Jan 2016 14:35:16 +0000 (15:35 +0100)
committerDavid Stainton <dstainton415@gmail.com>
Thu, 21 Jan 2016 17:09:52 +0000 (18:09 +0100)
src/allmydata/magicfolderdb.py

index 982b5fe298f8b02f52182d6b608b292d8bbdccf1..fdda3f0624f6a306a225ff9ad66c32dc1c72f8f5 100644 (file)
@@ -17,12 +17,12 @@ CREATE TABLE local_files
  path                VARCHAR(1024) PRIMARY KEY, -- UTF-8 filename relative to local magic folder dir
  -- note that size is before mtime and ctime here, but after in function parameters
  size                INTEGER,                   -- ST_SIZE, or NULL if the file has been deleted
- mtime               NUMBER,                      -- ST_MTIME
- ctime               NUMBER,                      -- ST_CTIME
+ mtime               REAL,                      -- ST_MTIME
+ ctime               REAL,                      -- ST_CTIME
  version             INTEGER,
  last_uploaded_uri   VARCHAR(256),                -- URI:CHK:...
  last_downloaded_uri VARCHAR(256),                -- URI:CHK:...
- last_downloaded_timestamp TIMESTAMP
+ last_downloaded_timestamp REAL
 );
 """