Files
wekan/docs/Databases/README.md
T
Lauri Ojansivu fea3c432e8 Organize docs/Databases: one directory per database.
It was a flat list where the database was a filename prefix, in three spellings
- MongoDB-Driver-System.md, mongodb-avx-qemu.md, MongoDB_OpLog_Enablement.md -
plus FerretDB2-PostgreSQL.md and a ToroDB-PostgreSQL directory. Somebody asking
"how do I run WeKan on PostgreSQL" had to read the prefixes to find out which
files were even about their database.

Now: Migrations, MongoDB, FerretDB (with 1 and 2, because v1 and v2 are
different products with different backends) and ToroDB (with PostgreSQL). Each
file keeps its name minus the redundant prefix - MongoDB/Driver-System.md,
MongoDB/avx-qemu.md - and the old PostgreSQL.md, which was an index of FerretDB
and ToroDB rather than a document about PostgreSQL, becomes the directory's
README.md.

Every directory has a README.md saying what is in it and where to go next,
including FerretDB/1, which had no documentation at all until now although it
is WeKan's default database and just gained four more backends. Links to a
directory point at the DIRECTORY, not at its README.md, because README.md is
what is opened by default.

Every link that pointed into the old paths is updated - in docs, in
docker-compose-ferretdb-v2-postgresql.yml, and in the wekan.fi website - and
the relative links inside the moved files, which gained a directory level and
so needed one more "../". tests/docsDatabases.test.cjs pins the layout, the
READMEs, the directory links, that every relative link resolves, and that
nothing outside CHANGELOG.md still names an old path.

Thanks to xet7 !
2026-07-28 01:05:27 +03:00

49 lines
2.4 KiB
Markdown

# Databases
WeKan stores its data in a MongoDB-compatible database. That can be MongoDB
itself, or FerretDB — which speaks the MongoDB wire protocol and stores the data
in SQLite, PostgreSQL, MySQL, MariaDB or SAP HANA. The **default** is FerretDB v1
with its embedded SQLite, so a fresh `docker compose up -d` needs no database
server at all.
| Directory | What is in it |
| --- | --- |
| [FerretDB/1/](FerretDB/1/) | FerretDB v1 — the default. SQLite, PostgreSQL, MySQL, MariaDB, SAP HANA |
| [FerretDB/2/](FerretDB/2/) | FerretDB 2 — PostgreSQL with the DocumentDB extension |
| [MongoDB/](MongoDB/) | MongoDB itself: drivers, versions, the OpLog, and old CPUs |
| [Migrations/](Migrations/) | WeKan's own schema migrations and how they are verified |
| [ToroDB/](ToroDB/) | ToroDB — a MongoDB proxy to PostgreSQL. No longer developed |
## FerretDB
Replacing MongoDB with FerretDB. Both of the v1 backends WeKan ships by default
are confirmed working with a real Meteor 3 client — the embedded SQLite and
vanilla PostgreSQL ([#6509](https://github.com/wekan/wekan/issues/6509)); MySQL,
MariaDB and SAP HANA are experimental.
- [FerretDB v1 — the five backends](FerretDB/1), and how to start each
- [FerretDB 2 + PostgreSQL install](FerretDB/2/PostgreSQL.md)
- <https://forums.meteor.com/t/ferretdb-1-18-now-has-oplog-support-trying-replace-mongodb-6-x-with-ferretdb-postgresql-or-ferretdb-sqlite/61092>
## MongoDB
- [Driver-System.md](MongoDB/Driver-System.md) — which Node driver is used for which server version
- [Version-Management.md](MongoDB/Version-Management.md) — detecting the server version and switching binaries
- [Compatibility-Guide.md](MongoDB/Compatibility-Guide.md) — MongoDB 3.0 … 8.0 with Meteor
- [Oplog-Configuration.md](MongoDB/Oplog-Configuration.md) — why the OpLog matters, and how to enable it
- [OpLog-Enablement.md](MongoDB/OpLog-Enablement.md) — its status per deployment platform
- [avx-qemu.md](MongoDB/avx-qemu.md) — MongoDB 5+ on a CPU without AVX
- [raspi4-qemu.md](MongoDB/raspi4-qemu.md) — MongoDB 5+ on a Raspberry Pi 4 and older
## Migrations
- [Migrations/](Migrations/) — the schema-migration system, its review notes and
`verify-migrations.sh`
## ToroDB
ToroDB is not developed anymore. ToroDB was about adding a MongoDB proxy to
PostgreSQL or MySQL.
- [ToroDB/PostgreSQL/](ToroDB/PostgreSQL/) — the compose file and notes kept here