Skip to content

Commit

Permalink
[SeaORM] fix typo (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
RafDevX authored Dec 1, 2024
1 parent b99f133 commit b2edc88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SeaORM/docs/03-migration/02-writing-migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ Since this syntax is not available on MySQL, you can:

```rust
async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> {
if manager.has_column("my_table", "col_to_add").await? {
if !manager.has_column("my_table", "col_to_add").await? {
// ALTER TABLE `my_table` ADD COLUMN `col_to_add` ..
}

Expand Down

0 comments on commit b2edc88

Please sign in to comment.