link

joined 2 years ago
MODERATOR OF
[–] link@lemy.lol 3 points 2 years ago
[–] link@lemy.lol 11 points 2 years ago (6 children)

Its website is looking good.

[–] link@lemy.lol 9 points 2 years ago* (last edited 2 years ago) (4 children)

Users who posts or comments. I’m not sure about votes tho 🤔

Edit: its posts or comments. No lurkers. I think they should include voters to get an actual number.

[–] link@lemy.lol 3 points 2 years ago (1 children)

0.19 RC.4 was working with Mlem but RC.5 broke it.

I’m getting ‘incorrect login’ and ‘Unable to decode’ errors on previously logged accounts.

I wish I could provide more info but I don’t have 🫤

[–] link@lemy.lol 1 points 2 years ago

Yep, I guess I should control it from software side.

[–] link@lemy.lol 1 points 2 years ago (2 children)

What do you suggest for not using an image more than once? It bothers me too that image table is in non-standard use.

The thing is, image table used on 4 other tables and if I want to put FK on image table I have to:

  • Add 4 optional foreign keys to the image table and use only one
  • Create 4 different image table that each of them related to the related 4 tables

Neither of these looking ideal to me.

[–] link@lemy.lol 2 points 2 years ago (4 children)

But image is used more than once, so its ideal to keep image independent from other tables.

[–] link@lemy.lol 1 points 2 years ago

I've been avoiding triggers, but I guess there's no better alternative. Thanks.

 

Example flow is on the image. Here I want to accomplish if playlist removed, make it delete image too.

I know I should've put FK on image table but Image is generic and its used more than once.

What are my options? Triggers and application-side comes to mind, but I'm not sure. Maybe there is a better way.

UPDATE: I guess I've found what I was looking for, rules:

CREATE RULE playlist_delete AS ON DELETE TO playlist WHERE (SELECT id FROM image WHERE image.id = OLD.image_id) IS NOT NULL DO INSTEAD NOTHING;

[–] link@lemy.lol 1 points 2 years ago

I need a sponsor uWu 👉 👈

[–] link@lemy.lol 6 points 2 years ago

Yeah I’m on original icon gang too 😅

 

Currently, as far as I understand, there is no notification support. May I ask, is it on roadmap?

view more: ‹ prev next ›