File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
mithril-aggregator/src/database Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -199,6 +199,7 @@ create table signed_entity (
199
199
signed_entity_id text not null,
200
200
signed_entity_type_id integer not null,
201
201
certificate_id text not null,
202
+ beacon json not null,
202
203
entity json not null,
203
204
created_at text not null default current_timestamp,
204
205
primary key (signed_entity_id)
@@ -208,12 +209,14 @@ create table signed_entity (
208
209
create table if not exists snapshot (key_hash text primary key, key json not null, value json not null);
209
210
insert into signed_entity (signed_entity_id,
210
211
signed_entity_type_id,
211
- certificate_id,
212
+ certificate_id,
213
+ beacon,
212
214
entity)
213
215
select
214
216
json_extract(snapshot.value, '$.digest') as signed_entity_id,
215
217
2 as signed_entity_type_id,
216
218
json_extract(snapshot.value, '$.certificate_hash') as certificate_id,
219
+ json_extract(snapshot.value, '$.beacon') as beacon,
217
220
snapshot.value as entity
218
221
from snapshot
219
222
order by ROWID asc;
You can’t perform that action at this time.
0 commit comments