Add default database date and interval style, set interval style to iso_8601 format

This commit is contained in:
xbgmsharp
2023-09-19 23:29:36 +02:00
parent 7edd2be1fd
commit 99dea0dbc8

View File

@@ -51,6 +51,10 @@ CREATE DATABASE signalk;
ALTER DATABASE signalk WITH CONNECTION LIMIT = 100; ALTER DATABASE signalk WITH CONNECTION LIMIT = 100;
-- Set timezone to UTC -- Set timezone to UTC
ALTER DATABASE signalk SET TIMEZONE='UTC'; ALTER DATABASE signalk SET TIMEZONE='UTC';
-- Set datestyle output
ALTER DATABASE signalk SET datestyle TO "ISO, DMY";
-- Set intervalstyle output
ALTER DATABASE signalk SET intervalstyle TO 'iso_8601';
-- connect to the DB -- connect to the DB
\c signalk \c signalk