Commit Graph

15 Commits

Author SHA1 Message Date
Egor Bugaev 9e15c3b96c Add rename-user SQL template; make batch transaction handling robust against non-Postgres backends
- New 'rename-user' template (templates / template rename-user <old> <new>):
  best-effort uid rename across core tables (oc_users, oc_preferences,
  oc_group_user, oc_group_admin, oc_ldap_user_mapping, oc_share, oc_mounts,
  oc_storages). Explicitly NOT a supported Nextcloud operation - the
  generated script carries an in-line warning (as leading SQL comments)
  that app-specific tables (Talk, Calendar, Contacts, Mail, 2FA/WebAuthn...)
  are not covered and that the data directory must be renamed on disk
  manually, followed by occ files:scan --all. Documented the same caveat
  in both READMEs.
- Hardened the round-2 transaction wrapping: beginTransaction()/commit()/
  rollBack() are now wrapped in try/catch. PostgreSQL (our backend) has
  fully transactional DDL so this wasn't actually broken here, but
  Nextcloud also supports MySQL/MariaDB via the same IDBConnection, where
  DDL implicitly commits - on that backend a DDL statement in the batch
  would make a later commit()/rollBack() throw 'no active transaction'
  and previously that exception was unhandled (HTTP 500 instead of a
  clean JSON response). Now: if rollBack() itself fails after an error,
  we report rollbackFailed+warning instead of falsely claiming rolledBack,
  since earlier statements in that batch may already be permanently
  applied. If commit() fails with nothing to commit (already
  auto-committed), that's logged only, since the effects are already
  durably persisted.
2026-07-06 19:52:05 +03:00
Egor Bugaev 341165eb38 Add post-clone install.sh (cleanup + chown + occ app:enable), document it in both READMEs 2026-07-06 19:15:09 +03:00
Egor Bugaev 5c5aa3ec6a Document install-on-a-new-server steps and installed_version sync gotcha 2026-07-06 19:02:30 +03:00
Egor Bugaev ec57fbc633 Document restarting PHP after deploying updates (opcache gotcha) 2026-07-06 17:06:05 +03:00
Egor Bugaev 07df21aac9 Bump version to 0.2.4, document SQL query mode, add Russian README 2026-07-06 16:47:17 +03:00
Adphi 66c823195c update links to main branch and remove remaning gogs links
Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
2023-08-22 12:33:17 +02:00
adphi 317c2483d4 deprecation notice 2020-06-20 03:59:38 +02:00
adphi d0c4cd1488 obviously, it's in front of the description 2020-06-20 03:46:31 +02:00
adphi 5a5ba37b69 Deprecated application 2020-06-20 03:44:49 +02:00
Adphi 222e9d5956 fix #6 2020-01-29 22:03:47 +01:00
Adphi 9ade0837b0 added screenshot to README.md 2019-01-21 18:27:30 +01:00
Adphi 8c4d675e1f Updated README.md 2019-01-19 21:00:53 +01:00
Adphi e5a9f0142f add scroll down on key down 2019-01-19 18:09:39 +01:00
Adphi 4fc2359fdc Updated README.md 2019-01-19 17:45:02 +01:00
Adphi c909a11420 init: term colors, completion, execution 2019-01-19 15:40:52 +01:00