mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 22:25:24 +00:00
fix(host-metrics): exclude image and firmware filesystems (#1469)
* fix(host-metrics): exclude image and firmware filesystems * fix(ci): build plugin SDK before dependent checks * fix(mysql): keep plugin settings scope indexes within limits * test(mysql): refresh reviewed plugin upgrade SQL
This commit is contained in:
1 parent
c38c2e84b8
commit
710f545e34
14 files changed
+4938
-16
No files matched your search
@@ -9,6 +9,7 @@
|
||||
|
||||
import {
|
||||
mysqlTable,
|
||||
mysqlEnum,
|
||||
text,
|
||||
varchar,
|
||||
int,
|
||||
@@ -1083,8 +1084,7 @@ export const pluginSettings = mysqlTable(
|
||||
pluginId: varchar("plugin_id", { length: 255 })
|
||||
.notNull()
|
||||
.references(() => plugins.id, { onDelete: "cascade" }),
|
||||
/** admin | user | host */
|
||||
scope: varchar("scope", { length: 255 }).notNull(),
|
||||
scope: mysqlEnum("scope", ["admin", "user", "host", "secret"]).notNull(),
|
||||
scopeId: varchar("scope_id", { length: 255 }),
|
||||
key: varchar("key", { length: 255 }).notNull(),
|
||||
/** JSON-encoded, so a field keeps its declared type across a round trip. */
|
||||
|
||||
@@ -1084,8 +1084,7 @@ export const pluginSettings = pgTable(
|
||||
pluginId: varchar("plugin_id", { length: 255 })
|
||||
.notNull()
|
||||
.references(() => plugins.id, { onDelete: "cascade" }),
|
||||
/** admin | user | host */
|
||||
scope: varchar("scope", { length: 255 }).notNull(),
|
||||
scope: varchar("scope", { length: 255, enum: ["admin", "user", "host", "secret"] }).notNull(),
|
||||
scopeId: varchar("scope_id", { length: 255 }),
|
||||
key: varchar("key", { length: 255 }).notNull(),
|
||||
/** JSON-encoded, so a field keeps its declared type across a round trip. */
|
||||
|
||||
@@ -1082,8 +1082,7 @@ export const pluginSettings = sqliteTable(
|
||||
pluginId: text("plugin_id")
|
||||
.notNull()
|
||||
.references(() => plugins.id, { onDelete: "cascade" }),
|
||||
/** admin | user | host */
|
||||
scope: text("scope").notNull(),
|
||||
scope: text("scope", { enum: ["admin", "user", "host", "secret"] }).notNull(),
|
||||
scopeId: text("scope_id"),
|
||||
key: text("key").notNull(),
|
||||
/** JSON-encoded, so a field keeps its declared type across a round trip. */
|
||||
|
||||
Reference in new issue
Block a user