nyanoblog/migrations
fef a0d2dc4151
refactor model IDs to use safe types
This is a major refactor that introduces a new
generic type Id<T, I> for tagging any ID with the
model they reference without any runtime overhead.
From now on, it should be pretty much impossible
to pass e.g. a note ID to a function that expects,
say, an account ID.

Furthermore, the follow and like tables have been
simplified to use the two IDs that define the
relationship as a composite primary key.

Finally, likes now have a memory cache.
2023-01-20 16:45:12 +01:00
..
20221205020531_create_accounts.sql add iri column 2022-12-25 15:57:33 +01:00
20221205235226_create_notes.sql data: add content_type field to notes 2022-12-27 02:30:03 +01:00
20221206184956_create_users.sql add even more fields to user schema 2022-12-19 15:45:03 +01:00
20221207230140_create_follows.sql refactor model IDs to use safe types 2023-01-20 16:45:12 +01:00
20221211175753_create_likes.sql refactor model IDs to use safe types 2023-01-20 16:45:12 +01:00
20221225041649_create_objects.sql add objects table 2022-12-25 18:29:33 +01:00