Add the checkpoints schema for diesel

This commit is contained in:
R Tyler Croy 2019-11-16 15:24:45 -08:00
parent 09c0b8d8a7
commit baba687d1b
No known key found for this signature in database
GPG Key ID: E5C92681BEF6CEA2
3 changed files with 9 additions and 0 deletions

View File

@ -0,0 +1,2 @@
-- This file should undo anything in `up.sql`
DROP TABLE checkpoints;

View File

@ -0,0 +1,7 @@
CREATE TABLE checkpoints (
id INTEGER PRIMARY KEY,
filepath VARCHAR NOT NULL,
filesize INTEGER NOT NULL,
inode INTEGER NOT NULL,
offset_bytes INTEGER NOT NULL DEFAULT 0
)

0
src/schema.rs Normal file
View File