radicle: Add foreign-key constraint for routing
modified radicle-cli/tests/commands.rs
@@ -854,8 +854,6 @@ fn rad_clone_connect() {
|
|
|
|
|
|
| - | |
| - | |
|
|
|
|
|
@@ -884,6 +882,8 @@ fn rad_clone_connect() {
|
|
|
|
|
|
| + | |
| + | |
|
|
|
|
|
modified radicle/src/node/db/schema.sql
@@ -46,8 +46,7 @@ create table if not exists "routing" (
|
|
|
|
|
|
| - | |
| - | |
| + | |
|
|
|
|
|
@@ -57,7 +56,9 @@ create table if not exists "routing" (
|
|
|
|
|
|
| - | |
| + | |
| + | |
| + | |
|
|
|
|
|
modified radicle/src/node/routing.rs
@@ -228,11 +228,19 @@ mod test {
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -255,7 +263,7 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -273,7 +281,7 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -296,7 +304,7 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -315,7 +323,7 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -335,7 +343,7 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -353,7 +361,7 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -379,7 +387,7 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -391,7 +399,7 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -406,7 +414,7 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -436,7 +444,7 @@ mod test {
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|