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
Copy file name to clipboardExpand all lines: docs/tutorials/first-schema-change.mdx
+8-15Lines changed: 8 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,39 +20,32 @@ In this tutorial, you'll use the default sample databases to get familiar with t
20
20
21
21
## Step 2 - Configure the SQL Review
22
22
23
-
1. Navigate to **CI/CD** > **SQL Review** in the left menu. Click **+ New SQL Review** to create a new SQL review.
23
+
1. Navigate to **CI/CD** > **SQL Review** in the left menu. Click **+ Create SQL review** to create a new SQL review.
24
24
25
-
1. Choose `Sample Template` which has 20 enabled rules and click **Confirm and add**. Attach the SQL review to Environment `Prod` and click **Confirm**.
1. Choose `Sample Template` which has 19 enabled rules and click **Next**. Click **Confirm and add** to attach the SQL review to Environment `Prod` and click **Confirm**. The SQL review is created.
29
26
30
27
## Step 3 - Create a Plan
31
28
32
29
1. Navigate to **CI/CD** > **Plans** in the left menu and click **+ New Plan**.
1. Add the SQL statement, you may click **Schema Editor** to visually design the schema if needed.
47
39
48
40
```sql
49
41
ALTERTABLEpublic.employee ADD COLUMN IF NOT EXISTS nickname TEXT;
50
42
```
51
43
52
44
Click **Create** to create the plan.
53
45
54
-
1. The plan will be in `Draft` status. You may see SQL review warnings, especially for the production environment. This is because Bytebase automatically runs configured checks.
1. The plan will be in `Draft` status. You may see SQL review warnings, this is because Bytebase automatically runs configured checks according to the SQL review policy. Click the warning to view details.
0 commit comments