summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorrebecca <ubq323@ubq323.website>2026-09-20 11:59:16 +0100
committerrebecca <ubq323@ubq323.website>2026-09-20 11:59:16 +0100
commit753803362cd516fb461d57efba18f9a32916106d (patch)
tree97859216b1407a7d346565d5b8c9f2aaf5ee0377 /db
parent425290f7a1813ccf768cb6ccdfc3bbb27b059025 (diff)
db.schema: don't warn about id column being present
Diffstat (limited to 'db')
-rw-r--r--db/schema.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/schema.lua b/db/schema.lua
index 6cee99f..13a550f 100644
--- a/db/schema.lua
+++ b/db/schema.lua
@@ -26,7 +26,7 @@ local function schemafy(schema)
for i,v in ipairs(have_cols_r) do
v.notnull = v.notnull ~= 0
have_cols[v.name] = v
- if not want_cols[v.name] then
+ if not want_cols[v.name] and v.name ~= 'id' then
print("warning, extraneous column:",tablename,v.name)
end
end