mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-05-24 17:12:43 -05:00
[PR #6291] [CLOSED] Cockroachdb #23284
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/dani-garcia/vaultwarden/pull/6291
Author: @haras-unicorn
Created: 9/14/2025
Status: ❌ Closed
Base:
main← Head:cockroachdb📝 Commits (2)
8665d39flakede632facockroachdb📊 Changes
124 files changed (+1405 additions, -147 deletions)
View changed files
📝
.env.template(+7 -0)➕
.envrc(+2 -0)📝
.github/workflows/build.yml(+25 -28)📝
.gitignore(+3 -0)➕
.helix/languages.toml(+56 -0)📝
.pre-commit-config.yaml(+59 -47)📝
Cargo.toml(+106 -18)📝
build.rs(+4 -1)📝
docker/Dockerfile.alpine(+1 -1)📝
docker/Dockerfile.debian(+1 -1)📝
docker/Dockerfile.j2(+2 -2)➕
flake.lock(+60 -0)➕
flake.nix(+55 -0)➕
migrations/cockroachdb/2019-09-12-100000_create_tables/down.sql(+13 -0)➕
migrations/cockroachdb/2019-09-12-100000_create_tables/up.sql(+121 -0)➕
migrations/cockroachdb/2019-09-16-150000_fix_attachments/down.sql(+26 -0)➕
migrations/cockroachdb/2019-09-16-150000_fix_attachments/up.sql(+27 -0)➕
migrations/cockroachdb/2019-10-10-083032_add_column_to_twofactor/down.sql(+0 -0)➕
migrations/cockroachdb/2019-10-10-083032_add_column_to_twofactor/up.sql(+1 -0)➕
migrations/cockroachdb/2019-11-17-011009_add_email_verification/down.sql(+1 -0)...and 80 more files
📄 Description
Trying cockroachdb again...
This time adding it as a feature with its own migrations and schema.
It's basically the same as postgres only with the difference of patches to migrations and the DATABASE_URL having to start with cockroach or cockroachdb.
I also added a nix flake and helix configuration which i use for development - hope you don't mind.
Creating a draft for now because I couldn't get playwright tests up and running because of this bit of weirdness:
If someone knows what I'm doing wrong, info would be much appreciated :).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.