Skip to content

Commit

Permalink
fix(migrations): correct check for is_demo
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Feb 18, 2025
1 parent 5fc4996 commit 465fb16
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions crates/migrations/src/m20250211_changes_for_issue_1216.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,7 @@ pub struct Migration;
impl MigrationTrait for Migration {
async fn up(&self, manager: &SchemaManager) -> Result<(), DbErr> {
let db = manager.get_connection();
if manager
.has_column("integration", "last_triggered_on")
.await?
{
if manager.has_column("access_link", "is_demo").await? {
db.execute_unprepared(r#"ALTER TABLE "access_link" DROP COLUMN "is_demo";"#)
.await?;
}
Expand Down

0 comments on commit 465fb16

Please sign in to comment.