diff options
-rw-r--r-- | rust/migrations/2018-05-12-001226_init/up.sql | 4 | ||||
-rw-r--r-- | rust/src/database_models.rs | 2 | ||||
-rw-r--r-- | rust/src/database_schema.rs | 5 |
3 files changed, 6 insertions, 5 deletions
diff --git a/rust/migrations/2018-05-12-001226_init/up.sql b/rust/migrations/2018-05-12-001226_init/up.sql index 09275bdd..d8b93dc2 100644 --- a/rust/migrations/2018-05-12-001226_init/up.sql +++ b/rust/migrations/2018-05-12-001226_init/up.sql @@ -94,7 +94,7 @@ CREATE TABLE file_rev ( id BIGSERIAL PRIMARY KEY, -- extra_json JSON, - size INTEGER, -- TODO: uint64 + size BIGINT, sha1 TEXT, -- TODO: varchar or bytes url TEXT -- TODO: URL table ); @@ -194,7 +194,7 @@ CREATE TABLE release_ref ( id BIGSERIAL PRIMARY KEY, release_rev BIGSERIAL REFERENCES release_rev(id) NOT NULL, target_release_ident_id UUID REFERENCES release_ident(id), -- or work? - index INTEGER, + index BIGINT, stub TEXT ); diff --git a/rust/src/database_models.rs b/rust/src/database_models.rs index 33676c95..d9305e9f 100644 --- a/rust/src/database_models.rs +++ b/rust/src/database_models.rs @@ -163,7 +163,7 @@ pub struct ReleaseRefRow { id: i64, release_rev: i64, target_release_ident_id: Option<Uuid>, - index: Option<i32>, + index: Option<i64>, stub: Option<String>, } diff --git a/rust/src/database_schema.rs b/rust/src/database_schema.rs index b25c52e2..9bcedf3e 100644 --- a/rust/src/database_schema.rs +++ b/rust/src/database_schema.rs @@ -108,7 +108,8 @@ table! { table! { file_rev (id) { id -> Int8, - size -> Nullable<Int4>, + extra_json -> Nullable<Json>, + size -> Nullable<Int8>, sha1 -> Nullable<Text>, url -> Nullable<Text>, } @@ -148,7 +149,7 @@ table! { id -> Int8, release_rev -> Int8, target_release_ident_id -> Nullable<Uuid>, - index -> Nullable<Int4>, + index -> Nullable<Int8>, stub -> Nullable<Text>, } } |