Skip to content
Discussion options

You must be logged in to vote

Yeah that is a weird one.
Also, the statistics table is supposed to do upsert when opened etc...

INSERT INTO statistics (photo_id) SELECT p.id FROM photos p LEFT JOIN statistics s ON s.photo_id = p.id WHERE s.photo_id IS NULL;

That can easily be solved by creating a single migration which applies this.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ildyria
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Bugs
Labels
None yet
2 participants