diff --git a/upgrades/1.26.0/README.adoc b/upgrades/1.26.0/README.adoc new file mode 100644 index 00000000..d9d44a64 --- /dev/null +++ b/upgrades/1.26.0/README.adoc @@ -0,0 +1,13 @@ += Upgrade to 1.26.0 + +== API lifecycle + +Starting with Gravitee.io 1.26, we introduce API lifecycle to manage your APIs. + +To follow that new feature, the Rest Management API has been updated to reflect those changes. + +== Repository +=== Mongodb + +https://raw.githubusercontent.com/gravitee-io/release/master/upgrades/1.26.0/mongodb/1-apis-migration.js[upgrades/1.26.0/mongodb/1-apis-migration.js]:: +This script update apis according to the new way Gravitee.io is managing them. \ No newline at end of file diff --git a/upgrades/1.26.0/mongodb/1-apis-migration.js b/upgrades/1.26.0/mongodb/1-apis-migration.js new file mode 100644 index 00000000..95be8a4a --- /dev/null +++ b/upgrades/1.26.0/mongodb/1-apis-migration.js @@ -0,0 +1,10 @@ + +print('APIs migration'); +db.apis.find().forEach( + function (api) { + print(" update the api"); + db.apis.updateOne( + { _id: api._id }, + { $set: { apiLifecycleState: 'PUBLISHED' }}); + } +); \ No newline at end of file diff --git a/upgrades/README.adoc b/upgrades/README.adoc index 3f0b9d3b..af1fc474 100644 --- a/upgrades/README.adoc +++ b/upgrades/README.adoc @@ -1,6 +1,8 @@ = Upgrade Notes ifdef::env-github[] +include::1.26.0/README.adoc[leveloffset=+1] + include::1.25.0/README.adoc[leveloffset=+1] include::1.24.0/README.adoc[leveloffset=+1]