Make ancestor cols not nullable, add fk constraints

Also removed the temporary backfill, now that it is complete.

Updates models so cols are not optional.
This commit is contained in:
2022-01-24 21:41:45 -05:00
parent 10c299dc45
commit 17facae842
5 changed files with 19 additions and 42 deletions

View File

@@ -10,7 +10,7 @@ pub struct Plugin {
pub name: String,
pub hash: i64,
pub file_id: i32,
pub mod_id: Option<i32>,
pub mod_id: i32,
pub version: f64,
pub size: i64,
pub author: Option<String>,
@@ -27,7 +27,7 @@ pub struct UnsavedPlugin<'a> {
pub name: &'a str,
pub hash: i64,
pub file_id: i32,
pub mod_id: Option<i32>,
pub mod_id: i32,
pub version: f64,
pub size: i64,
pub author: Option<&'a str>,