Fix Containerfile and order of migrations

Signed-off-by: trivernis <trivernis@protonmail.com>
develop v0.10.4
trivernis 2 years ago
parent e23a0bd325
commit 7a70e30c7e
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

2
Cargo.lock generated

@ -3520,7 +3520,7 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
[[package]] [[package]]
name = "tobi-rs" name = "tobi-rs"
version = "0.10.2" version = "0.10.3"
dependencies = [ dependencies = [
"animethemes-rs", "animethemes-rs",
"aspotify", "aspotify",

@ -4,7 +4,7 @@ FROM ${BASE_IMAGE} AS build_base
RUN apk update RUN apk update
RUN apk add --no-cache --force-overwrite \ RUN apk add --no-cache --force-overwrite \
build-base \ build-base \
openssl3-dev \ openssl-dev \
libopusenc-dev \ libopusenc-dev \
libpq-dev \ libpq-dev \
curl \ curl \
@ -29,7 +29,7 @@ RUN cp target/release/tobi-rs /tmp/tobi/
FROM ${BASE_IMAGE} AS runtime-base FROM ${BASE_IMAGE} AS runtime-base
RUN apk update RUN apk update
RUN apk add --no-cache --force-overwrite \ RUN apk add --no-cache --force-overwrite \
openssl3 \ openssl \
libopusenc \ libopusenc \
libpq \ libpq \
python3 \ python3 \

@ -9,8 +9,8 @@ pub struct Migrator;
impl MigratorTrait for Migrator { impl MigratorTrait for Migrator {
fn migrations() -> Vec<Box<dyn MigrationTrait>> { fn migrations() -> Vec<Box<dyn MigrationTrait>> {
vec![ vec![
Box::new(m20220029_164527_change_timestamp_format::Migration),
Box::new(m20220101_000001_create_table::Migration), Box::new(m20220101_000001_create_table::Migration),
Box::new(m20220029_164527_change_timestamp_format::Migration),
] ]
} }
} }

Loading…
Cancel
Save