hedgedoc/lib/migrations
Sheogorath a9d98d4b52
Add fix for missing deletion of notes on user-deletion request
Depending on how the system was setup, this bug lead to keep user's data
around even after a successful deletion of user'S account. This patch
will make sure the missing database constraints are implemented and
missed out deletions are executed.

This bug was introduced to insufficent testing after implementing the
feature initially. It was well tested, using the app process itself, but
the migrations where missed out. I'm currently not sure, if there was
also a change in how sequelize handles cassaded deletion, since I'm
unter the impression that before switching to sequelize 5, this feature
has worked. But I haven't verified this.

No matter what, the cleanup process is rather straight forward and will
be invoked on migration, but can also be done manually using the new
`bin/cleanup` script.

This change will result in a release 1.6.1.

Signed-off-by: Sheogorath <sheogorath@shivering-isles.com>
2020-03-21 16:14:43 +01:00
..
20150504155329-create-users.js fix: Add missing migration 2017-03-27 19:23:00 +08:00
20150508114741-create-notes.js fix: Add missing migration 2017-03-27 19:23:00 +08:00
20150515125813-create-temp.js fix: Add missing migration 2017-03-27 19:23:00 +08:00
20150702001020-update-to-0_3_1.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
20150915153700-change-notes-title-to-text.js fix: Other dialect duplicated add index problem 2017-03-28 15:28:33 +08:00
20160112220142-note-add-lastchange.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
20160420180355-note-add-alias.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
20160515114000-user-add-tokens.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
20160607060246-support-revision.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
20160703062241-support-authorship.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
20161009040430-support-delete-note.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
20161201050312-support-email-signin.js Fix eslint warnings 2019-05-31 00:30:29 +02:00
20171009121200-longtext-for-mysql.js fix: migration should return promise 2019-08-12 14:13:34 +02:00
20180209120907-longtext-of-authorship.js fix: migration should return promise 2019-08-12 14:13:34 +02:00
20180306150303-fix-enum.js fix: migration should return promise 2019-08-12 14:13:34 +02:00
20180326103000-use-text-in-tokens.js Use TEXT instead of STRING for tokens 2018-03-26 15:55:39 +02:00
20180525153000-user-add-delete-token.js Add token based security feature 2018-05-25 18:26:06 +02:00
20200321153000-fix-account-deletion.js Add fix for missing deletion of notes on user-deletion request 2020-03-21 16:14:43 +01:00