Richard Anderson 5a12ed76bb
Database collations (#489)
* SyncDatabases

* Collation on Create inc WordPress

* Refactored Enum

* Resolve sync issue

* Fix for PostgreSQL

* pint

* reversed enum

* style adjustments

* add unit tests

* style

* fix tests

* more tests

---------

Co-authored-by: Saeed Vaziry <61919774+saeedvaziry@users.noreply.github.com>
Co-authored-by: Saeed Vaziry <mr.saeedvaziry@gmail.com>
2025-03-02 17:18:27 +01:00

9 lines
210 B
PHP

if ! sudo -u postgres psql -c "SELECT
datname AS database_name,
pg_encoding_to_char(encoding) AS charset,
datcollate AS collation
FROM pg_database;";
then
echo 'VITO_SSH_ERROR' && exit 1
fi