refactor: drop the one-time copy of legacy .mind data

The first start copied Waggle's tables and the memories of the commercial
edition's .mind files into waggle.db and mem0. The product is still in
development and nobody has data to bring over, so both copies, their tests
and the legacy creation-time field are gone. ADR-0007 records the change.
This commit is contained in:
shumeiko.it
2026-10-28 12:35:41 +01:00
parent fb3697ca6c
commit a8250cb375
12 changed files with 15 additions and 618 deletions

View File

@@ -329,15 +329,4 @@ describe('Memory Center routes', () => {
expect((await server.inject({ method: 'POST', url: '/api/memory/suppression/allow', payload: {} })).statusCode).toBe(404);
expect((await server.inject({ method: 'GET', url: `/api/memory/${mem.id}/source` })).statusCode).toBe(404);
});
it('shows the original creation time of a memory copied from the legacy engine', async () => {
const [change] = await memory.remember({
scope: PERSONAL_SCOPE,
text: 'Legacy memory.',
origin: 'legacy-import',
metadata: { legacy_created_at: '2025-03-01 10:20:30' },
});
const res = await server.inject({ method: 'GET', url: `/api/memory/${change!.record.id}` });
expect(res.json().createdAt).toBe('2025-03-01T10:20:30.000Z');
});
});