Blog/Announcements

GitLab, Azure DevOps, Bitbucket and any Git server

Build branches from migrations on every major Git host, commit migrations back, and replay more migration formats, from Flyway to Liquibase.

Announcements6 min read

Building a branch from your migrations used to mean your migrations lived on GitHub. They can now live almost anywhere.

Hosts

  • GitHub, through the Bright Web Data Modeller GitHub App installed on your organisation, or through your own account under Account → Connections.
  • GitLab, Azure DevOps and Bitbucket, through a workspace connection that an owner or admin sets up once. Self-managed GitLab works too, with an access token.
  • Gitea and Forgejo, including Codeberg, with an access token.
  • Any Git server over HTTPS, with a token. The app speaks the Git protocol directly and fetches only what it needs, so it works where there's no API at all. This one is read only.

Every host but the plain Git server can also take a commit: the migration from a merge request goes straight into your migrations folder, and a comment thread can become an issue (a work item on Azure DevOps). On Bitbucket that needs the repository's own issue tracker switched on.

Azure DevOps and Bitbucket repositories can also be linked with an access token instead of the workspace connection, as long as the repository is on dev.azure.com or bitbucket.org.

Linking a repository

Wherever the app asks for a repository (the Link a repository window from a branch checkout, the migration tab's Connect a repository, or Import from a repository on a new diagram), the first choice is Access: how the app reaches the repository. It lists every way in you have:

  • My GitHub account, once you've connected GitHub under Account settings → Connections.
  • Bright Web Data Modeller GitHub App on your organisation, for each installation that belongs to this workspace.
  • GitLab:, Azure DevOps: or Bitbucket: followed by the account name, for each workspace connection.
  • Self-managed GitLab…, Azure DevOps with an access token…, Bitbucket with an access token…, Self-managed Gitea / Forgejo… and Self-managed Git server (HTTPS)…, which ask for a server address and a token.

Picking one also picks the provider, so there's no separate host setting. Then choose the repository and branch, set the folder that holds your migrations, and click Link repository.

A workspace connection, step by step

  1. An owner or admin opens Settings → Integrations and clicks Connect beside GitLab, Azure DevOps or Bitbucket.
  2. The provider's own consent screen opens. Once it's approved, the connection is listed under the workspace with the account it belongs to.
  3. Anyone in the workspace can now pick that connection under Access and choose from the projects it can see. People outside the workspace, such as someone who joined a diagram through a share link, can't use it.

If a diagram moves to another workspace, links made through the old workspace's connection are dropped, since that connection belongs to the old workspace.

A token, step by step

For Gitea, Forgejo, Codeberg, a self-managed GitLab or a plain Git server, pick the self-managed option under Access. Type the server (for example git.example.com, or the whole https://git.example.com/team/app.git address for a plain Git server) and paste a token that can read the repository. Load repositories lists what the token reaches; for a plain Git server the button reads Use this repository, because there's no API to list anything.

The token is checked by reading the repository before the link is saved. It's kept encrypted on the server and used only for that repository.

Knowing when the repository moves

When the app links a repository it registers a webhook on the host, with a secret of its own, so a push marks tracking branches as behind within moments. If your account can't add webhooks, it checks the repository instead. A plain Git server has no webhooks, so tracking there always checks the ref.

Every delivery is verified before anything in it is read, using whatever the host signs with: GitLab's token header, an HMAC signature on Gitea and Bitbucket, basic authentication on Azure DevOps service hooks. Each delivery is handled once, even if the host sends it again.

Merge requests on the host that touch the migrations folder get a status from the app. It's named "Bright Web Data Modeller", says how many migration files changed (for example "2 migration files changed"), and links to the diagram with New branch from a Git commit open on the request. A reviewer sees the schema the request would produce next to the branch they're viewing, and can turn it into a branch to look at properly.

More migration formats

The app recognises the layout of most migration tools and replays them in order:

  • Supabase, Prisma and Drizzle migrations
  • Flyway, golang-migrate, dbmate and goose
  • Sqitch plans, Atlas with its atlas.sum, and Liquibase changelogs
  • SQL Server database projects
  • Rails db/schema.rb, Prisma and Drizzle schema files, DBML, a single schema.sql, or any folder of .sql files

Each one is read the way its tool reads it: a Sqitch plan or a Liquibase master changelog decides the order, not the file names.

The format is detected from the files, and you can set it yourself. On a branch checkout, the line under the repository reads something like "Reading supabase/migrations · detect format · postgres"; Change opens the migrations path, the format and the dialect.

A Sqitch example

Sqitch keeps the order in sqitch.plan and the SQL in deploy/:

%syntax-version=1.0.0
%project=shop

customers 2026-10-01T09:00:00Z Ana <ana@example.com> # Customers
orders [customers] 2026-10-08T12:00:00Z Ana <ana@example.com> # Orders
@v1.0 2026-10-09T10:00:00Z Ana <ana@example.com> # First release

The app reads the plan line by line. Lines starting with % or @ are pragmas and tags, not changes, so the replay runs deploy/customers.sql then deploy/orders.sql. Files in revert/ and verify/ never run. If the plan names a change whose script is missing, you get a warning such as "The plan names orders, but deploy/orders.sql isn't there." rather than a schema that silently lacks the table.

Atlas works the same way from atlas.sum: the first line is the directory's hash, and the files listed after it are replayed in that order. Liquibase starts from the master changelog (XML, YAML or JSON), follows its include and includeAll entries in document order, writes the standard change types as DDL, and takes formatted SQL and plain .sql includes as they are. A change type it can't write becomes a warning.

dbmate and goose files hold both directions in one file; only the part under -- migrate:up or -- +goose Up runs. A SQL Server database project has one object per file and no order, so its files are read together rather than replayed.

Limits worth knowing

  • A plain Git server is read only: no commits, issues, statuses or webhooks, and you type the repository's address because there's nothing to list. History looks back through the newest 200 commits for ones that touched the migrations folder.
  • Commits only ever write a migration file: a .sql name, optionally inside one folder (Prisma's <timestamp>_<name>/migration.sql). Nothing is force-pushed.
  • Azure DevOps and Bitbucket tokens work only on their own cloud hosts.

Credentials stay on our side

Tokens are encrypted with a key only the server holds and are used only inside the server function that talks to the host. Nothing that reaches a browser includes them, and every address you type in is resolved and checked before the app connects to it. Private and internal network addresses are refused, and the connection goes to the address that was checked, so a host name can't be pointed somewhere else between the check and the request.

More announcements

  • Convex schemas, in and out

    19 November 2026 · 6 min read

    Export a diagram as convex/schema.ts from any engine, paste one in, or check one out from a repository, and what happens to the parts Convex can't hold.

  • Snippets: drop-in table sets that stay up to date

    10 November 2026 · 6 min read

    About a hundred ready-made table sets for payments, auth, teams and more, inserted into the schema you already have and updated without losing your edits.

  • A vault we can't open, and a local agent

    6 November 2026 · 6 min read

    Database credentials sealed in your browser with a workspace key our servers never see, and a small agent that reads databases from your own machine.

Try it on your own schema

One diagram with two branches, no card needed. Upgrade when your team needs more.