Skip to content

Commit

Permalink
tmp
Browse files Browse the repository at this point in the history
  • Loading branch information
aidewoode committed May 22, 2024
1 parent 45b55e2 commit a658f32
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ That's all. Now, you can access either http://localhost:3000 or http://host-ip:3
> [!IMPORTANT]
> If you upgrade to major version, you need to read the upgrade guide carefully before upgrade. Because there are some breaking changes in major version.
>
> - See [v3 Upgrade]() for upgrade from v2 release.
> - See [V3 Upgrade]() for upgrade from V2 release.
> - See [Edge Upgrade]() for upgrade from edge release to latest stable release.
Upgrade Black Candy is just pull new image from remote. then remove old container and create a new one.

Expand Down
Empty file added docs/edge_upgrade.md
Empty file.
17 changes: 17 additions & 0 deletions docs/v3_upgrade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Upgrade from Black Candy v2 to v3

There are a lot of breaking infrastructure changes in Black Candy v3, including using SQLite as the default database, remove the dependency on Redis and Sidekiq. Also remove the dependencies of Nginx and Docker Compose to running Black Candy server.

Because Black Candy v3 support both SQLite and PostgreSQL as database, and Blakc Candy v2 only support PostgreSQL. So depending on whether you want to migrate to SQLite as database in v3, you can choose different upgrade methods.

## Keep using PostgreSQL as database

> [!WARNING]
> Because Black Candy v3 need to support both SQLite and PostgreSQL, and some data in v2 is not compatible with SQLite, if you keep using PostgreSQL as database, there are still some small data you are going to lose after upgrade. Including: all settings.
1. Pull the v3 image from remote:

```shell
docker pull ghcr.io/blackcandy-org/blackcandy:3.0.0
```

0 comments on commit a658f32

Please sign in to comment.