Add a data migration to remove URLs that just link to a quoted tweet

This commit is contained in:
Alessio 2022-03-02 16:09:41 -08:00
parent 3cb3c14e77
commit 68d4062820

View File

@ -8,7 +8,7 @@ import (
)
const ENGINE_DATABASE_VERSION = 10
const ENGINE_DATABASE_VERSION = 11
type VersionMismatchError struct {
@ -65,6 +65,7 @@ var MIGRATIONS = []string{
`create table fake_user_sequence(latest_fake_id integer not null);
insert into fake_user_sequence values(0x4000000000000000);
alter table users add column is_id_fake boolean default 0;`,
`delete from urls where rowid in (select urls.rowid from tweets join urls on tweets.id = urls.tweet_id where urls.text like 'https://twitter.com/%/status/' || tweets.quoted_tweet_id || "%")`,
}
/**