From 154230947853d3a6f5f817ed0933bb22897fc5ee Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Sat, 16 Sep 2017 07:30:15 +0300 Subject: [PATCH] small schema fix. --- migrations/2017-09-15-001128_init_schema/up.sql | 6 +++--- src/schema.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/migrations/2017-09-15-001128_init_schema/up.sql b/migrations/2017-09-15-001128_init_schema/up.sql index 05731be..c8cf866 100644 --- a/migrations/2017-09-15-001128_init_schema/up.sql +++ b/migrations/2017-09-15-001128_init_schema/up.sql @@ -2,10 +2,10 @@ CREATE TABLE `episode` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, `title` TEXT NOT NULL, `uri` TEXT NOT NULL, - `description` TEXT, `local_uri` TEXT, - `thumbnail` TEXT, - `lenght` INTEGER, + `description` TEXT, + `epoch` INTEGER NOT NULL DEFAULT 0, + `length` INTEGER NOT NULL DEFAULT 0, `guid` TEXT, `podcast_id` INTEGER NOT NULL ); diff --git a/src/schema.rs b/src/schema.rs index 5877694..ac796be 100644 --- a/src/schema.rs +++ b/src/schema.rs @@ -3,10 +3,10 @@ table! { id -> Integer, title -> Text, uri -> Text, - description -> Nullable, local_uri -> Nullable, - thumbnail -> Nullable, - lenght -> Nullable, + description -> Nullable, + epoch -> Integer, + length -> Integer, guid -> Nullable, podcast_id -> Integer, }