Commit 71c6eb62 authored by Matthias Larisch's avatar Matthias Larisch

Add documentation for fixup, fix fixup

parent 18a6eea3
Pipeline #7961385 passed with stage
in 3 minutes and 8 seconds
......@@ -400,4 +400,45 @@ Each try (by users) of a quiz ("session")
### todo
remove broken data
FK to *fs_foodsaver*, `ON DELETE CASCADE`
## fs_rating
Stores trust bananas
### todo
remove broken data (as we don't want to have trust bananas from/for deleted users)
Add FK
## fs_stat_abholmengen
Stores statistics per store (maybe broken implementation?)
### todo
add FK to store
## fs_theme
forum themes
### todo
nothing as threads from deleted users should be kept
## fs_theme_follower
stores who follows themes
### todo
remove broken data (as follower information is irrelevant for broken XY)
Add FK
## fs_theme_post
Stores posts in themes
### todo
Recreate users
Remove broken data (for themes, not users)
Add FK to themes
## fs_usernotes_has_wallpost
connects organotes on users with wallposts
### todo
recreate missing users
remove broken entries (for wallposts)
......@@ -192,8 +192,6 @@ ALTER TABLE fs_rating ADD CONSTRAINT FOREIGN KEY (rater_id) REFERENCES fs_foodsa
ALTER TABLE fs_stat_abholmengen ADD CONSTRAINT FOREIGN KEY (betrieb_id) REFERENCES fs_betrieb(id) ON DELETE CASCADE;
ALTER TABLE fs_theme ADD CONSTRAINT FOREIGN KEY (foodsaver_id) REFERENCES fs_foodsaver(id) ON DELETE CASCADE;
DELETE FROM fs_theme_follower WHERE theme_id NOT IN (SELECT id FROM fs_theme);
ALTER TABLE fs_theme_follower ADD CONSTRAINT FOREIGN KEY (theme_id) REFERENCES fs_theme(id) ON DELETE CASCADE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment