Remove PostgreSQL support: pure SQLite architecture
BREAKING CHANGE: Remove all PostgreSQL functionality Changes: - Remove dependencies: tokio-postgres, postgres from Cargo.toml - Delete files: pg_client.rs (330 lines), sync.rs (370 lines), provider/pg.rs (300 lines) - Remove modules from lib.rs: pg_client, sync - Remove pg module from provider/mod.rs - Remove PostgreSQL sync code from server.rs (lines 126-165) - Remove auth_db field and with_sync() from auth.rs - Simplify SSH server to use SqliteProvider only - Convert sync API endpoints to return 410 Gone with error message - Remove [postgresql] config section from markbase.toml Rationale: - Simplify architecture by using SQLite exclusively - Remove complexity of PostgreSQL synchronization - Reduce dependencies and maintenance burden - SQLite is sufficient for MarkBase use case Code removed: ~1000 lines Files deleted: 3 Files modified: 8
This commit is contained in:
@@ -7,14 +7,6 @@ users_db_dir = "data/users"
|
||||
webdav_root = "/Users/accusys/momentry/var/sftpgo/data/demo"
|
||||
upload_path = "/Users/accusys/momentry/var/sftpgo/data"
|
||||
|
||||
[postgresql]
|
||||
host = "127.0.0.1"
|
||||
port = 5432
|
||||
user = "sftpgo"
|
||||
password = "sftpgo_pass_2026"
|
||||
database = "sftpgo"
|
||||
connection_pool_size = 5
|
||||
|
||||
[authentication]
|
||||
bcrypt_cost = 10
|
||||
token_validity_hours = 24
|
||||
|
||||
Reference in New Issue
Block a user