> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bytebase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Plan

A **Plan** is the core component of Bytebase’s CI/CD pipeline. It defines a series of schema or data changes to be applied to one or more databases. It can be converted into an **Issue** for review and deployment.

### 1. Create Plan

In your project, navigate to **CI/CD** > **Plans** and click **+ New Plan**.

### 2. Select Databases

Choose one or moretarget databases and click **Confirm**.

### 3. Add Changes

Add SQL statements (multiple allowed by clicking **+ Add Change**) and click **Create**. The plan will be in `Draft` status with automatic SQL review.

<img src="https://mintcdn.com/dbx/_u_UkbSshEmyZlPt/content/docs/change-database/plan/bb-plan-warning-detail.webp?fit=max&auto=format&n=_u_UkbSshEmyZlPt&q=85&s=f8b5c4e24731bef5702057488a2184f4" alt="bb-plan-warning-detail" width="615" height="234" data-path="content/docs/change-database/plan/bb-plan-warning-detail.webp" />

### 4. Submit for Review (Enterprise)

Fix the warning, and click **Ready for Review**. The plan will be converted into an issue and await approval. Approval follows [configured rules](/change-database/approval).

The plan detail page shows a **Review** section where you can follow the approval flow and the activity timeline while the change awaits approval.

<img src="https://mintcdn.com/dbx/Xj13KTchw5r9gXZ8/content/docs/change-database/plan/bb-plan-review.webp?fit=max&auto=format&n=Xj13KTchw5r9gXZ8&q=85&s=23a3b23d2fc81c55d28912f5de763703" alt="Review section on the plan detail page showing the pending approval flow and activity timeline" width="1600" height="480" data-path="content/docs/change-database/plan/bb-plan-review.webp" />

### 5. Deploy

After approval, go to the **Rollout** section to deploy changes. You may configure the rollout policy to `Automatic` in the [environment](/change-database/environment-policy/rollout-policy).

<img src="https://mintcdn.com/dbx/_u_UkbSshEmyZlPt/content/docs/change-database/plan/bb-issue-2-targets-to-rollout.webp?fit=max&auto=format&n=_u_UkbSshEmyZlPt&q=85&s=5ebaffc67729e105854526319f7a3c22" alt="bb-issue-2-targets-to-rollout" width="1006" height="443" data-path="content/docs/change-database/plan/bb-issue-2-targets-to-rollout.webp" />

Deploy to `Test` first, then `Prod` after success.
