mirror of
https://github.com/cypht-org/cypht.git
synced 2026-04-25 04:56:03 +03:00
[GH-ISSUE #814] Add db_prefix configuration parameter #485
Labels
No labels
2fa
I18N
PGP
Security
Security
account
advanced_search
advanced_search
announcement
api_login
authentication
awaiting feedback
blocker
bug
bug
bug
calendar
config
contacts
core
core
devops
docker
docs
duplicate
dynamic_login
enhancement
epic
feature
feeds
framework
github
github
gmail_contacts
good first issue
help wanted
history
history
imap
imap_folders
inline_message
installation
keyboard_shortcuts
keyboard_shortcuts
ldap_contacts
mobile
need-ssh-access
new module set
nux
pop3
profiles
pull-request
question
refactor
release
research
saved_searches
smtp
strategic
tags
tests
themes
website
wordpress
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cypht#485
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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?
Originally created by @ivanov17 on GitHub (Oct 30, 2023).
Original GitHub issue: https://github.com/cypht-org/cypht/issues/814
Originally assigned to: @IrAlfred on GitHub.
🚀 Feature
Hello! I didn't find a parameter for database table name prefix in the Cypht configuration.
It may seem that this is not relevant today, and no one shares the database between several applications anymore. But I remember that such a parameter can also be used to access PostgreSQL schemas other than
public. I think this is more widely practiced than sharing MySQL/MariaDB databases.Design, Layout, Architecture
I think this should be an optional parameter that can be used to access prefixed MySQL/MariaDB database tables or non-default PostgreSQL schemas.
@marclaporte commented on GitHub (Nov 4, 2023):
Related: https://github.com/cypht-org/cypht/issues/813
@marclaporte commented on GitHub (Dec 16, 2025):
@kroky @mose @JohnXLivingston @benoitg
@IrAlfred could work on this. Any thoughts on if and how this should be done?
Would this help for Cypht as a webmail for hosting companies? (When most historically use Roundcube)
@benoitg commented on GitHub (Dec 16, 2025):
I doubt it would help any hosting scenarios.
Table prefixes to access postgres namespace is really a confusion caused by mysql doing things different from everyone else (what mysql calls databases is more or less what other database call schemas or namespaces). A prefix with a dot can be used to access a different postgres namespace can also be used to access a different mysql database. Which is equally pointless most of the time.
There is really no reason I can see (besides being needlessly quirky) for a PostgreSQL admin to create a non default schema rather than a postgres database for cypth.
I never really understood the point of user-configured table prefixes (I really don't like db_prefix as a name). Prefixes in generally are useful to share a namespace with other things and not have clashes (I don't know how we handle it in tiki). But that's usually for one of two reasons:
In both cases, a user prefix is only necessary if the system doesn't already have a prefix unlikely to clash. Cypht doesn't seem to have this problem
A system may also use prefixes to manage multiple copies of itself, or integration testing, but that's never managed by the user.