From 36b8d3d0a8c97726d4413ae005b36e6288119ed4 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Wed, 30 Jun 2021 19:55:47 -0600 Subject: use the table name matching what actually exists --- src/db/migration/change.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'src/db') diff --git a/src/db/migration/change.rs b/src/db/migration/change.rs index a07ef24..758e23a 100644 --- a/src/db/migration/change.rs +++ b/src/db/migration/change.rs @@ -37,6 +37,7 @@ impl DatabaseChange { Field::DateTimeField { name } => { (*name, types::text()) // TODO do smart things on non-sqlite } + Field::IntField { name: "id" } => ("id", types::primary()), Field::IntField { name } => (*name, types::integer()), }) .collect(); -- cgit v1.2.3