mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-11-09 13:27:57 +01:00
removed unnecessary count
This commit is contained in:
1 parent
0798b5ccbb
commit
c70ca97888
3 files changed
+4
-29
No files matched your search
@@ -269,7 +269,7 @@ func (r *MigrationsRunner) initMigrationsTable() error {
|
||||
func (r *MigrationsRunner) isMigrationApplied(txApp App, file string) bool {
|
||||
var exists bool
|
||||
|
||||
err := txApp.DB().Select("count(*)").
|
||||
err := txApp.DB().Select("(1)").
|
||||
From(r.tableName).
|
||||
Where(dbx.HashExp{"file": file}).
|
||||
Limit(1).
|
||||
|
||||
Reference in new issue
Block a user