Skip to content

Conversation

@rebelice
Copy link
Contributor

close BYT-5117

Copilot AI review requested due to automatic review settings November 13, 2025 03:27
@vercel
Copy link

vercel bot commented Nov 13, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
bytebase-com Ready Ready Preview Comment Nov 19, 2025 6:25am

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive documentation for SDL multi-file format in Bytebase's GitOps state-based workflow, explaining how to export and organize database schema files.

Key Changes:

  • Added detailed instructions for exporting schema from Bytebase UI with multi-file format option
  • Documented the complete multi-file directory structure and organization rules
  • Expanded examples to show individual files for tables, views, functions, and sequences

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

## Getting Started

When starting with state-based workflow:
You don't need to write SDL files from scratch. Bytebase can export your existing database schema in the multi-file format, ready to use.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a requirement for now, instead of suggestion. We can emphasize schema export


![Export Schema dropdown showing Single File and Multi-File (ZIP) options](/content/docs/gitops/state-based-workflow/export-schema-dropdown.webp)

### Quick Start Workflow
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The quick start section seems to serve as an overview here, and docs for each individual steps should each be another section following this quick start (export, extract, review, commit, etc) . This will match the order the reader read this doc and match their expectation.

So maybe we should move this "Quick Start Workflow" section to be the first subsection under "Getting Started".

(But current document structure does not follow previous overview, I will enhance the document for the other sections.)

One other question: the "Review" section here may introduce confusion. If it means the initiator should review, then it's a bit redundant, and it may also collide with the SQL Review Ops/Action after initiator pushes the commit.


### What Gets Exported

The multi-file export includes:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be helpful to list the objects that will not be exported to files to let the user know, what objects are their responsibilities to be included.

Copy link
Member

@tianzhou tianzhou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tianzhou tianzhou merged commit 98dcadd into main Nov 19, 2025
5 checks passed
@tianzhou tianzhou deleted the docs/sdl-file-format branch November 19, 2025 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants