diff --git a/Cargo.lock b/Cargo.lock index 6ce3132..f7ef470 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -734,7 +734,7 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "highlights" -version = "2.1.3" +version = "2.1.4" dependencies = [ "anyhow", "chrono", diff --git a/Cargo.toml b/Cargo.toml index 3a573b9..cd11c10 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "highlights" -version = "2.1.3" +version = "2.1.4" authors = ["ThatsNoMoon "] repository = "https://github.com/ThatsNoMoon/highlights" license = "OSL-3.0" diff --git a/src/db/migration/m2022_08_04_000001_init.rs b/src/db/migration/m2022_08_04_000001_init.rs index 3a6187d..2cd9d3f 100644 --- a/src/db/migration/m2022_08_04_000001_init.rs +++ b/src/db/migration/m2022_08_04_000001_init.rs @@ -79,6 +79,7 @@ impl MigrationTrait for Migration { .create_table( Table::create() .table(ignore::Entity) + .if_not_exists() .col( ColumnDef::new(ignore::Column::Phrase) .string() @@ -108,6 +109,7 @@ impl MigrationTrait for Migration { .create_table( Table::create() .table(mute::Entity) + .if_not_exists() .col( ColumnDef::new(mute::Column::UserId) .big_integer() @@ -131,6 +133,7 @@ impl MigrationTrait for Migration { .create_table( Table::create() .table(block::Entity) + .if_not_exists() .col( ColumnDef::new(block::Column::UserId) .big_integer() @@ -154,6 +157,7 @@ impl MigrationTrait for Migration { .create_table( Table::create() .table(notification::Entity) + .if_not_exists() .col( ColumnDef::new(notification::Column::UserId) .big_integer() @@ -185,6 +189,7 @@ impl MigrationTrait for Migration { .create_table( Table::create() .table(opt_out::Entity) + .if_not_exists() .col( ColumnDef::new(opt_out::Column::UserId) .big_integer() @@ -199,6 +204,7 @@ impl MigrationTrait for Migration { .create_table( Table::create() .table(user_state::Entity) + .if_not_exists() .col( ColumnDef::new(user_state::Column::UserId) .big_integer()