Skip to content

Commit

Permalink
fix: set correct priority
Browse files Browse the repository at this point in the history
  • Loading branch information
smnhgn committed Jan 20, 2025
1 parent cbec214 commit cd79530
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class CellAnnotationConfigModel(override protected[this] val connection: Databas
| is_multilang,
| is_dashboard)
|VALUES
| (?, COALESCE(?, (SELECT MAX(priority) FROM $table), 0) + 1, ?, ?, ?, ?, ?) RETURNING name""".stripMargin
| (?, COALESCE(?, (SELECT MAX(priority) FROM $table) + 1, 1), ?, ?, ?, ?, ?) RETURNING name""".stripMargin

for {
_ <- checkUniqueName(name)
Expand Down

0 comments on commit cd79530

Please sign in to comment.