aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-06-30 19:55:47 -0600
committerMelody Horn <melody@boringcactus.com>2021-06-30 19:55:47 -0600
commit36b8d3d0a8c97726d4413ae005b36e6288119ed4 (patch)
treed52e5670cbf38e1fafdff2986543cae8495461ef /src
parent85d53a3358819d15788e1196d110fb6fd7199c67 (diff)
downloadtosin-36b8d3d0a8c97726d4413ae005b36e6288119ed4.tar.gz
tosin-36b8d3d0a8c97726d4413ae005b36e6288119ed4.zip
use the table name matching what actually exists
Diffstat (limited to 'src')
-rw-r--r--src/db/migration/change.rs1
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();