Commit 9859e3f
chore: drop the circle tables nobody reads
Migration 014 created circle, person_circle, resource_access_rule and
mattermost_circle_link. The circle table has never had an INSERT or a
SELECT anywhere in this repository, and person_circle had one writer:
a copy from itself onto a new person ID, which moved rows nothing put
there. resource_access_rule and mattermost_circle_link are named only by
the migration that made them.
An empty table with a plausible name is worse than no table. Somebody
looked at circle and circle_member today and asked for them to be filled,
which would have changed nothing, because what actually decides a
person's circles is policy.json and the person.circles column projected
from it. Those stay, as does graphiti_namespace.scope_circle_id.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 4b1550d commit 9859e3f
3 files changed
Lines changed: 7 additions & 20 deletions
File tree
- internal/store/postgres
- migrations
- tests/integration
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
| 18 | + | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| |||
0 commit comments