Skip to content

Commit 7bba7c1

Browse files
committed
skip pattern
1 parent fd1dbad commit 7bba7c1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

crates/migration/src/m20250825_033646_oauth_connections.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ impl MigrationTrait for Migration {
2828
)
2929
.col(
3030
ColumnDef::new(UserOAuthConnections::Provider)
31-
.enumeration(OAuthProvider::Table, OAuthProvider::iter().skip(1))
31+
.enumeration(
32+
OAuthProvider::Table,
33+
OAuthProvider::iter()
34+
.filter(|v| !matches!(v, OAuthProvider::Table)),
35+
)
3236
.not_null(),
3337
)
3438
.col(

0 commit comments

Comments
 (0)