Use cascading deletes for removal of node rows
modified radicle/src/node/address/schema.sql
@@ -17,7 +17,7 @@ create table if not exists "nodes" (
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -40,7 +40,7 @@ create table if not exists "addresses" (
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -66,7 +66,7 @@ create table if not exists "repo-sync-status" (
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified radicle/src/node/address/store.rs
@@ -47,6 +47,7 @@ impl From<sql::Connection> for Book {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -58,6 +59,7 @@ impl Book {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -67,6 +69,7 @@ impl Book {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -75,6 +78,7 @@ impl Book {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -196,20 +200,12 @@ impl Store for Book {
|
|
|
|
|
|
| - | |
| - | |
| - | |
| - | |
| - | |
| + | |
|
|
| - | |
| - | |
| - | |
| - | |
| + | |
| + | |
|
|
| - | |
| - | |
| - | |
| + | |
|
|
|
|
|