I did some looking into this and the only line you will need is: cursor.execute(("DELETE FROM plugins WHERE url = %s"),(url))
But we will need to recreate the tables with the ON DELETE CASCADE restraint. It will need done in the torrents, torrent_files, and announcers tables or the foreign keys for each table.
I did some looking into this and the only line you will need is:
cursor.execute(("DELETE FROM plugins WHERE url = %s"),(url))
But we will need to recreate the tables with the
ON DELETE CASCADE
restraint. It will need done in thetorrents
,torrent_files
, andannouncers
tables or the foreign keys for each table.