[FEATURE] - Adding fileSize in backup model in order to display it.

This commit is contained in:
charlesgauthereau
2026-01-02 15:32:36 +01:00
parent c471423775
commit 619c32f09d
7 changed files with 1951 additions and 2 deletions
@@ -0,0 +1 @@
ALTER TABLE "backups" ADD COLUMN "file_size" integer;
File diff suppressed because it is too large Load Diff
+7
View File
@@ -113,6 +113,13 @@
"when": 1766426190521,
"tag": "0015_absurd_next_avengers",
"breakpoints": true
},
{
"idx": 16,
"version": "7",
"when": 1767363779637,
"tag": "0016_broken_morgan_stark",
"breakpoints": true
}
]
}
+1
View File
@@ -38,6 +38,7 @@ export const backup = pgTable(
id: uuid("id").primaryKey().defaultRandom(),
status: statusEnum("status").default("waiting").notNull(),
file: text("file"),
fileSize: integer("file_size"),
databaseId: uuid("database_id")
.notNull()
.references(() => database.id, {onDelete: "cascade"}),