---
title: Deploy Bytebase with AI on Blossom
url: "/deploy/bytebase/"
canonical_url: https://blossom88.com/deploy/bytebase/
markdown_url: https://blossom88.com/deploy/bytebase.md
summary: Review and apply a PostgreSQL schema change with Bytebase Community on Blossom.
categories:
- deployment
- developer-tools
- databases
stack:
- Go
- React
- TypeScript
- PostgreSQL
---

# Deploy Bytebase with AI on Blossom

[Bytebase](https://www.bytebase.com/) helps you plan, check and apply
database changes. This recipe uses the self-hosted Community edition to
create a table in a disposable PostgreSQL database.

![A Bytebase plan for creating a release tasks table.](/deploy/assets/images/bytebase/create-table-plan.webp)

![A deployed follow-up plan for adding a due date column.](/deploy/assets/images/bytebase/second-schema-change.webp)

## Ask Your Agent

> **Ask your AI agent:** Deploy Bytebase on Blossom and help me review a schema change for a test database.
>
> Follow this guide: https://blossom88.com/deploy/bytebase/

[Install the Blossom CLI and skill](https://docs.blossom88.com/learn/getting-started/install/) on your agent's machine and [choose a Location in your cloud account](https://docs.blossom88.com/learn/getting-started/choose-your-cloud/#connect-your-provider).

## Have Ready

- **A test PostgreSQL database** (Required): Use a disposable database and a credential that can change its schema.

## How It Runs

| Part | Role | Where |
|---|---|---|
| Bytebase | Review and apply schema changes through a web console | App Capacity with Blossom Account access |
| PostgreSQL | Keep Bytebase workspace data and change history | Managed by Blossom |

## Deploy Bytebase

Start Bytebase behind Blossom Account access and create the first admin.
Use managed PostgreSQL for Bytebase's own workspace metadata.

<details class="optional-reading" markdown="1">
<summary>Deployment details</summary>

Use the official [Bytebase image](https://docs.bytebase.com/get-started/self-host/deploy-with-docker)
on port 8080, run the `/healthz` check and set the generated HTTPS address
as Bytebase's external URL. Link the metadata database as `PG_URL`.
The [external PostgreSQL setup](https://docs.bytebase.com/get-started/self-host/external-postgres)
supports a database-owner credential.

    blossom database_instance:create --data bytebase-metadata.yml
    blossom environment_link:create --data bytebase-metadata-link.yml
    blossom service:create --data bytebase.yml
    blossom environment:deploy --id environment-100 --follow

The vendor documents the free [Community plan](https://docs.bytebase.com/get-started/self-host-vs-cloud)
for self-hosted use. [Enterprise functionality](https://github.com/bytebase/bytebase/blob/main/LICENSE.enterprise)
has separate terms.

</details>

## Connect a Test Database

Create a project, register a disposable PostgreSQL database in the Test
environment, and sync its schema. Use a credential scoped to that database.

> **Ask your AI agent:** Create a Bytebase project and connect my disposable PostgreSQL database.

> Follow this guide: https://blossom88.com/deploy/bytebase/



<details class="optional-reading" markdown="1">
<summary>Notes for your agent</summary>

If you create a test namespace in the same managed PostgreSQL instance,
wait for its initial backup to finish before creating the namespace.

</details>

## Review and Run a Change

Create a plan to add a table and inspect Bytebase's built-in checks.
Submit it for review and run the rollout against the test database. The
Community setup in this recipe needs no separate approval for its Test
environment.

> **Ask your AI agent:** Plan a release_tasks table, check the SQL and apply it to the test database.

> Follow this guide: https://blossom88.com/deploy/bytebase/



## Reopen the Change History

After an update, sign in and check that the first change remains in
the database's changelog. Create a follow-up plan to add a due date column.

> **Ask your AI agent:** After updating Bytebase, reopen the first change and add a due date column with a new plan.

> Follow this guide: https://blossom88.com/deploy/bytebase/



## What You Get

- A private Bytebase Community workspace
- A deployment plan with built-in SQL checks
- A change history for your test database

Tested on Blossom: The first schema change stayed in the changelog after Container replacement, and a second plan added a column.
