Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

Remove "PINNED" from InboxStatus

天舟80b771bfa1ca
diff --git a/api/inbox.go b/api/inbox.go
index 472d64694a..23d356acb8 100644
--- a/api/inbox.go
+++ b/api/inbox.go
@@ -10,7 +10,6 @@ type InboxStatus string
const (
UNREAD InboxStatus = "UNREAD"
READ InboxStatus = "READ"
- PINNED InboxStatus = "PINNED"
)
func (e InboxStatus) String() string {
@@ -19,8 +18,6 @@ func (e InboxStatus) String() string {
return "UNREAD"
case READ:
return "READ"
- case PINNED:
- return "PINNED"
}
return "UNKNOWN"
}
diff --git a/frontend/src/types/inbox.ts b/frontend/src/types/inbox.ts
index 3f9ee72a7e..1c803bf713 100644
--- a/frontend/src/types/inbox.ts
+++ b/frontend/src/types/inbox.ts
@@ -1,7 +1,7 @@
import { Activity } from "./activity";
import { InboxId, PrincipalId } from "./id";
-export type InboxStatus = "UNREAD" | "READ" | "PINNED";
+export type InboxStatus = "UNREAD" | "READ";
export type InboxLevel = "INFO" | "WARNING" | "ERROR";
diff --git a/store/migration/10001__init_schema.sql b/store/migration/10001__init_schema.sql
index 6be145faec..ab4328c3ee 100644
--- a/store/migration/10001__init_schema.sql
+++ b/store/migration/10001__init_schema.sql
@@ -826,7 +826,7 @@ CREATE TABLE inbox (
id INTEGER PRIMARY KEY AUTOINCREMENT,
receiver_id INTEGER NOT NULL REFERENCES principal (id),
activity_id INTEGER NOT NULL REFERENCES activity (id),
- `status` TEXT NOT NULL CHECK (`status` IN ('UNREAD', 'READ', 'PINNED')),
+ `status` TEXT NOT NULL CHECK (`status` IN ('UNREAD', 'READ')),
`level` TEXT NOT NULL CHECK (`level` IN ('INFO', 'WARNING', 'ERROR'))
);