Skip to content

Commit

Permalink
docs: refine environment policy
Browse files Browse the repository at this point in the history
  • Loading branch information
tianzhou committed Nov 22, 2024
1 parent 33b0217 commit 75dd3f9
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions content/docs/administration/environment-policy/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,32 +2,32 @@
title: Environment Policy
---

## Execution Mode
## Statement execution mode

Even if you have `databases.queryDML` and `databases.queryDDL` permissions, you can only run SELECT in [SQL Editor](/docs/sql-editor/overview/) by default. If you attempt to run mutation DML or DDL, it will prompt you to submit an issue.
Even if you have `sql.dml` and `sql.ddl` [database permissions](/docs/security/database-permission/overview/), you can only run read-only statements such as `SELECT` in SQL Editor by default. If you attempt to run mutation DML or DDL, it will prompt you to submit an issue.

![prompt-issue](/content/docs/administration/environment-policy/prompt-issue.webp)

If you want to run those statements directly in SQL Editor, you need to turn on the statement execution setting.
If you want to run those statements directly in SQL Editor, you need to turn on the **statement execution** setting.

![statement-execution](/content/docs/administration/environment-policy/statement-execution.webp)

## Environment Tier
## Environment tier

<PricingPlanBlock feature_name='ENVIRONMENT_TIER' />

### Prod Indicator

Bytebase allows attaching a shield icon to an environment to indicate that this environment has been marked as production environment. Workspace admin or DBA can configure this under the Environment Tier section from the environment detail page.

![tier-envs](/content/docs/administration/environment-policy/tier-envs.webp)

### Environment color

You can configure any color for an environment either by inputting in **HEX** tab or choosing one in the palette.

![env-color](/content/docs/administration/environment-policy/env-color.webp)

Click **Update** on bottom right. You'll see your databases in this environment featuring the new environment color on its tab page in SQL Editor.
SQL Editor then displays the configured color tab.

![env-color-sql-editor](/content/docs/administration/environment-policy/env-color-sql-editor.webp)

### Production indicator

Once you mark an environment as a production environment, Bytebase will attach a shield icon 🛡️ besides the environment name.

![tier-envs](/content/docs/administration/environment-policy/tier-envs.webp)

0 comments on commit 75dd3f9

Please sign in to comment.