(app core.App, file string)
| 200 | } |
| 201 | |
| 202 | func isMigrationApplied(app core.App, file string) bool { |
| 203 | var exists int |
| 204 | |
| 205 | err := app.DB().Select("(1)"). |
| 206 | From(core.DefaultMigrationsTable). |
| 207 | Where(dbx.HashExp{"file": file}). |
| 208 | Limit(1). |
| 209 | Row(&exists) |
| 210 | |
| 211 | return err == nil && exists > 0 |
| 212 | } |
no test coverage detected
searching dependent graphs…