Skip to content
This repository has been archived by the owner on Mar 24, 2024. It is now read-only.

Commit

Permalink
fix init migration
Browse files Browse the repository at this point in the history
  • Loading branch information
ThatsNoMoon committed Jan 9, 2023
1 parent 5b758d3 commit 1c41bc1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "highlights"
version = "2.1.3"
version = "2.1.4"
authors = ["ThatsNoMoon <git@thatsnomoon.dev>"]
repository = "https://github.com/ThatsNoMoon/highlights"
license = "OSL-3.0"
Expand Down
6 changes: 6 additions & 0 deletions src/db/migration/m2022_08_04_000001_init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand All @@ -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()
Expand All @@ -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()
Expand Down Expand Up @@ -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()
Expand All @@ -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()
Expand Down

0 comments on commit 1c41bc1

Please sign in to comment.