unique constraint on feed/account
authorxangelo <git@xangelo.ca>
Wed, 13 Apr 2022 18:25:00 +0000 (14:25 -0400)
committerxangelo <git@xangelo.ca>
Wed, 13 Apr 2022 18:25:00 +0000 (14:25 -0400)
sql/seed.ts

index bf0118c53df3f699f01a0820a8e3b6743f9c6342..185f8da63c1add540faef9c844f3c6368fafb2ff 100644 (file)
@@ -33,7 +33,6 @@ writer.prepare(`
                )
                `).run();
 
-writer.prepare(`create index idx_account_feed on feedlist (account_id, link)`).run();
 
 
 writer.prepare(`
@@ -49,6 +48,8 @@ writer.prepare(`
                )
                `).run();
 
+writer.prepare(`create unique index idx_account_feed on feedlist (account_id, link)`).run();
+
 }
 
 /*