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

Commit 1c41bc1

Browse files
committed
fix init migration
1 parent 5b758d3 commit 1c41bc1

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "highlights"
3-
version = "2.1.3"
3+
version = "2.1.4"
44
authors = ["ThatsNoMoon <[email protected]>"]
55
repository = "https://github.com/ThatsNoMoon/highlights"
66
license = "OSL-3.0"

src/db/migration/m2022_08_04_000001_init.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ impl MigrationTrait for Migration {
7979
.create_table(
8080
Table::create()
8181
.table(ignore::Entity)
82+
.if_not_exists()
8283
.col(
8384
ColumnDef::new(ignore::Column::Phrase)
8485
.string()
@@ -108,6 +109,7 @@ impl MigrationTrait for Migration {
108109
.create_table(
109110
Table::create()
110111
.table(mute::Entity)
112+
.if_not_exists()
111113
.col(
112114
ColumnDef::new(mute::Column::UserId)
113115
.big_integer()
@@ -131,6 +133,7 @@ impl MigrationTrait for Migration {
131133
.create_table(
132134
Table::create()
133135
.table(block::Entity)
136+
.if_not_exists()
134137
.col(
135138
ColumnDef::new(block::Column::UserId)
136139
.big_integer()
@@ -154,6 +157,7 @@ impl MigrationTrait for Migration {
154157
.create_table(
155158
Table::create()
156159
.table(notification::Entity)
160+
.if_not_exists()
157161
.col(
158162
ColumnDef::new(notification::Column::UserId)
159163
.big_integer()
@@ -185,6 +189,7 @@ impl MigrationTrait for Migration {
185189
.create_table(
186190
Table::create()
187191
.table(opt_out::Entity)
192+
.if_not_exists()
188193
.col(
189194
ColumnDef::new(opt_out::Column::UserId)
190195
.big_integer()
@@ -199,6 +204,7 @@ impl MigrationTrait for Migration {
199204
.create_table(
200205
Table::create()
201206
.table(user_state::Entity)
207+
.if_not_exists()
202208
.col(
203209
ColumnDef::new(user_state::Column::UserId)
204210
.big_integer()

0 commit comments

Comments
 (0)