mirror of
https://github.com/google/nomulus
synced 2026-01-07 14:05:44 +00:00
Allow schema push in alpha and crash (#771)
* Allow schema push in alpha and crash This allows unsubmitted changes to be tested in alpha and crash. Also updated the README file and reformatted with the internal mdformat tool.
This commit is contained in:
@@ -29,8 +29,8 @@ ext {
|
||||
def dbServer = findProperty(dbServerProperty).toString().toLowerCase()
|
||||
def dbName = findProperty(dbNameProperty)
|
||||
|
||||
isCloudSql = {
|
||||
return allDbEnv.contains(dbServer)
|
||||
isRestricted = {
|
||||
return restrictedDbEnv.contains(dbServer)
|
||||
}
|
||||
|
||||
getAccessInfoByHostPort = { hostAndPort ->
|
||||
@@ -169,8 +169,8 @@ dependencies {
|
||||
flywayInfo.dependsOn('buildNeeded')
|
||||
flywayValidate.dependsOn('buildNeeded')
|
||||
|
||||
if (ext.isCloudSql()) {
|
||||
// Disable dangerous Flyway tasks. Only allow info and validate.
|
||||
if (ext.isRestricted()) {
|
||||
// Disable dangerous Flyway tasks in sandbox and production. Only allow info and validate.
|
||||
tasks.findAll { task -> task.group.equals('Flyway')}.each {
|
||||
if (it.name == 'flywayMigrate') {
|
||||
it.doFirst {
|
||||
|
||||
Reference in New Issue
Block a user