mirror of
https://github.com/sourcegraph/sourcegraph.git
synced 2026-02-06 13:31:54 +00:00
chore(rel): bump minor for stitch graph + add support invalidating migrations repo rule (#62511)
chore(rel): bump minor for stitch graph + add support invalidating migrations repo rule (#62490) * chore(bzl): allow to invalidate migrations repo rule * chore(bzl): gen stitch graph for 5.4
This commit is contained in:
parent
46efc7d1e9
commit
d488517383
@ -502,6 +502,7 @@ load("//dev:schema_migrations.bzl", "schema_migrations")
|
||||
|
||||
schema_migrations(
|
||||
name = "schemas_migrations",
|
||||
updated_at = "2024-05-07 14:39",
|
||||
)
|
||||
|
||||
# wolfi images setup ================================
|
||||
|
||||
@ -1,3 +1,11 @@
|
||||
"""
|
||||
Provide a custom repository_rule to fetch database migrations from previous versions from
|
||||
a GCS bucket.
|
||||
|
||||
The "updated_at" attribute allows to manually invalidate the cache, because the rule itself
|
||||
cannot know when to do so, as it will simply skip listing the bucket otherwise.
|
||||
"""
|
||||
|
||||
def _schema_migrations(rctx):
|
||||
"""
|
||||
This repository is used to download the schema migrations from GCS.
|
||||
@ -54,4 +62,7 @@ filegroup(
|
||||
|
||||
schema_migrations = repository_rule(
|
||||
implementation = _schema_migrations,
|
||||
attrs = {
|
||||
"updated_at": attr.string(mandatory = True),
|
||||
},
|
||||
)
|
||||
|
||||
@ -10,7 +10,7 @@ import (
|
||||
// NOTE: This should be kept up-to-date with the upcoming version to be released, and bumped after.
|
||||
// fallback schemas everything we support migrating to. The release tool automates this upgrade, so don't touch this :)
|
||||
// This should be the last minor version since patch releases only happen in the release branch.
|
||||
const maxVersionString = "5.3.0"
|
||||
const maxVersionString = "5.4.0"
|
||||
|
||||
// MaxVersion is the highest known released version at the time the migrator was built.
|
||||
var MaxVersion = func() oobmigration.Version {
|
||||
|
||||
@ -926,6 +926,13 @@
|
||||
1679051112
|
||||
],
|
||||
"PreCreation": false
|
||||
},
|
||||
"v5.4.0": {
|
||||
"RootID": 1000000027,
|
||||
"LeafIDs": [
|
||||
1679051112
|
||||
],
|
||||
"PreCreation": false
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -1895,6 +1902,13 @@
|
||||
1686315964
|
||||
],
|
||||
"PreCreation": false
|
||||
},
|
||||
"v5.4.0": {
|
||||
"RootID": 1000000033,
|
||||
"LeafIDs": [
|
||||
1686315964
|
||||
],
|
||||
"PreCreation": false
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -11456,6 +11470,15 @@
|
||||
"PreCreation": false
|
||||
},
|
||||
"v5.3.0": {
|
||||
"RootID": 1648051770,
|
||||
"LeafIDs": [
|
||||
1709738515,
|
||||
1711003437,
|
||||
1711538234
|
||||
],
|
||||
"PreCreation": false
|
||||
},
|
||||
"v5.4.0": {
|
||||
"RootID": 1648051770,
|
||||
"LeafIDs": [
|
||||
1713958707
|
||||
|
||||
Loading…
Reference in New Issue
Block a user