blob: 09330c9428ba6ffbff9284f4ac2558be3391a019 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
package migrations
import migrate "github.com/rubenv/sql-migrate"
func init() {
m := &migrate.Migration{
Id: "20220520083313_remove_maintenance_replication_events",
Up: []string{
`DELETE FROM replication_queue WHERE job->>'change' IN (
'gc',
'repack_full',
'repack_incremental',
'cleanup',
'pack_refs',
'write_commit_graph',
'midx_repack',
'optimize_repository',
'prune_unreachable_objects'
)`,
},
Down: []string{
// We cannot get this data back anymore.
},
}
allMigrations = append(allMigrations, m)
}
|