refactor: ensure repo dirs exist; rename some things

This commit is contained in:
Jef Roosens 2024-05-30 10:49:44 +02:00
parent 58def483aa
commit f9518d6b7d
Signed by: Jef Roosens
GPG key ID: 02D4C0997E74717B
6 changed files with 61 additions and 66 deletions

View file

@ -81,7 +81,7 @@ impl MigrationTrait for Migration {
.col(ColumnDef::new(Package::PgpSig).string_len(255))
.col(ColumnDef::new(Package::PgpSigSize).big_integer())
.col(ColumnDef::new(Package::Sha256Sum).char_len(64).not_null())
.col(ColumnDef::new(Package::Compression).char_len(16).not_null())
.col(ColumnDef::new(Package::Compression).string_len(16).not_null())
.foreign_key(
ForeignKey::create()
.name("fk-package-repo_id")