mirror of
https://github.com/fosrl/pangolin.git
synced 2026-04-29 17:23:11 +00:00
Set the default to unknown
This commit is contained in:
@@ -347,7 +347,7 @@ export default async function migration() {
|
||||
`);
|
||||
|
||||
await db.execute(sql`
|
||||
ALTER TABLE "resources" ADD "health" varchar;
|
||||
ALTER TABLE "resources" ADD "health" varchar DEFAULT 'unknown';
|
||||
`);
|
||||
|
||||
await db.execute(sql`
|
||||
|
||||
@@ -332,7 +332,7 @@ export default async function migration() {
|
||||
).run();
|
||||
db.prepare(
|
||||
`
|
||||
ALTER TABLE 'resources' ADD 'health' text;
|
||||
ALTER TABLE 'resources' ADD 'health' text DEFAULT 'unknown';
|
||||
`
|
||||
).run();
|
||||
db.prepare(
|
||||
|
||||
Reference in New Issue
Block a user