You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
postgresCmd.PersistentFlags().StringVar(&flags.ProjectRef, "project-ref", "", "Project ref of the Supabase project.")
43
54
postgresCmd.AddCommand(postgresConfigGetCmd)
44
55
postgresCmd.AddCommand(postgresConfigUpdateCmd)
56
+
postgresCmd.AddCommand(postgresConfigDeleteCmd)
45
57
46
58
updateFlags:=postgresConfigUpdateCmd.Flags()
47
59
updateFlags.StringSliceVar(&postgresConfigValues, "config", []string{}, "Config overrides specified as a 'key=value' pair")
48
60
updateFlags.BoolVar(&postgresConfigUpdateReplaceMode, "replace-existing-overrides", false, "If true, replaces all existing overrides with the ones provided. If false (default), merges existing overrides with the ones provided.")
49
61
updateFlags.BoolVar(&noRestart, "no-restart", false, "Do not restart the database after updating config.")
50
62
63
+
deleteFlags:=postgresConfigDeleteCmd.Flags()
64
+
deleteFlags.StringSliceVar(&postgresConfigKeysToDelete, "config", []string{}, "Config keys to delete (comma-separated)")
65
+
deleteFlags.BoolVar(&noRestart, "no-restart", false, "Do not restart the database after deleting config.")
returnerrors.Errorf("failed to update config overrides: %w", err)
39
+
}
40
+
ifresp.JSON200==nil {
41
+
ifresp.StatusCode() ==400 {
42
+
returnerrors.Errorf("failed to update config overrides: %s (%s). This usually indicates that an unsupported or invalid config override was attempted. Please refer to https://supabase.com/docs/guides/platform/custom-postgres-config", resp.Status(), string(resp.Body))
43
+
}
44
+
returnerrors.Errorf("failed to update config overrides: %s (%s)", resp.Status(), string(resp.Body))
0 commit comments