1d99749f72389426e6d7c50948a2cdcee6fad460
Postgres
- url
- Format:
postgres://user@host:port/dbnameorpostgres:///dbname?host=/var/run/postgresql. - Default:
postgres://nxcaldav@localhost:5432/nxcaldav?sslmode=disable
- Format:
Users
- name: required
- password: cleartext or bcrypt hash
- password_cmd: shell command
password_cmd: "echo secretpassword" # Command (output will be hashed in DB)
password: "$2y$12$LU.8xNK6m98hEJ5oRnBsDuMamfIjXoWTW0eMIJ6yGdLoP3nJAHWH6"
SQL
delte user
DELETE FROM users WHERE name = 'bob';
delete calendar
DELETE FROM calendars WHERE name = 'bob_calendar' AND owner_id = (SELECT id FROM users WHERE name = 'bob');
/* or */
DELETE FROM calendars WHERE path = '/bob/calendars/bob_calendar/';
Description