pg migration: cascade

This commit is contained in:
Alex Gleason 2024-08-12 15:17:42 -05:00
parent 617659c7fd
commit 8a23011392
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -129,7 +129,7 @@ If you don't want to wait, you can create a fresh database and then import your
clearTimeout(tid); clearTimeout(tid);
if (iid) clearInterval(iid); if (iid) clearInterval(iid);
await db.schema.dropTable('nostr_events').execute(); await db.schema.dropTable('nostr_events').cascade().execute();
await db.schema.dropTable('nostr_tags').execute(); await db.schema.dropTable('nostr_tags').execute();
await db.schema.dropTable('nostr_pgfts').execute(); await db.schema.dropTable('nostr_pgfts').execute();