mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-10 01:10:09 +03:00
[PR #493] [MERGED] Initial support for mysql #3701
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/493
Author: @endyman
Created: 5/27/2019
Status: ✅ Merged
Merged: 6/2/2019
Merged by: @dani-garcia
Base:
master← Head:feature/initial_mysql_support📝 Commits (10+)
42af7c6MySQL database85c8a01Merge branch 'master' of github.com:Skeen/bitwarden_rsab95a69Rework migrations for MySQLe22e290Fix key and type variable names for mysql233b48bFix missing joinable in schemaeb9d5e1Reintroduce .env.template5fb6531Attempt to fix azure pipeline6f78395Passwordless sudo on azure?badd22aMake docker image buildff75939initial mysql support📊 Changes
75 files changed (+610 additions, -134 deletions)
View changed files
📝
.travis.yml(+3 -1)📝
Cargo.lock(+12 -13)📝
Cargo.toml(+6 -4)📝
Dockerfile(+12 -2)📝
Dockerfile.aarch64(+7 -2)📝
Dockerfile.alpine(+15 -2)📝
Dockerfile.armv6(+7 -2)📝
Dockerfile.armv7(+8 -2)📝
azure-pipelines.yml(+10 -2)📝
migrations/mysql/2018-01-14-171611_create_tables/down.sql(+0 -0)➕
migrations/mysql/2018-01-14-171611_create_tables/up.sql(+62 -0)📝
migrations/mysql/2018-02-17-205753_create_collections_and_orgs/down.sql(+0 -0)➕
migrations/mysql/2018-02-17-205753_create_collections_and_orgs/up.sql(+30 -0)📝
migrations/mysql/2018-04-27-155151_create_users_ciphers/down.sql(+0 -0)➕
migrations/mysql/2018-04-27-155151_create_users_ciphers/up.sql(+34 -0)📝
migrations/mysql/2018-05-08-161616_create_collection_cipher_map/down.sql(+0 -0)➕
migrations/mysql/2018-05-08-161616_create_collection_cipher_map/up.sql(+5 -0)📝
migrations/mysql/2018-05-25-232323_update_attachments_reference/down.sql(+0 -0)➕
migrations/mysql/2018-05-25-232323_update_attachments_reference/up.sql(+14 -0)📝
migrations/mysql/2018-06-01-112529_update_devices_twofactor_remember/down.sql(+0 -0)...and 55 more files
📄 Description
This is a merged PR based on the work of @skeen in #486 and our efforts to support additional backends.
Using build args the desired backend can be selected, the default is sqlite. You can start a mysql build using the following command:
docker build --build-arg DB=mysql .Here is a simple test setup:
Current supported features
What still needs to be done apart from review and backward compatibility and migration testing:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.