diff options
author | Melody Horn <melody@boringcactus.com> | 2021-06-30 19:55:47 -0600 |
---|---|---|
committer | Melody Horn <melody@boringcactus.com> | 2021-06-30 19:55:47 -0600 |
commit | 36b8d3d0a8c97726d4413ae005b36e6288119ed4 (patch) | |
tree | d52e5670cbf38e1fafdff2986543cae8495461ef /src/db/migration | |
parent | 85d53a3358819d15788e1196d110fb6fd7199c67 (diff) | |
download | tosin-36b8d3d0a8c97726d4413ae005b36e6288119ed4.tar.gz tosin-36b8d3d0a8c97726d4413ae005b36e6288119ed4.zip |
use the table name matching what actually exists
Diffstat (limited to 'src/db/migration')
-rw-r--r-- | src/db/migration/change.rs | 1 |
1 files changed, 1 insertions, 0 deletions
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(); |