Changeset 5c20c64


Ignore:
Timestamp:
02/10/26 14:02:45 (5 months ago)
Author:
Andrej <asumanovski@…>
Branches:
master
Children:
ff01f66
Parents:
8615885
Message:

Added new content to the landing page and fixed app properties

Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • backend/src/main/resources/application.properties

    r8615885 r5c20c64  
    44# JPA & Hibernate
    55# ============================
    6 spring.jpa.hibernate.ddl-auto=update
     6# NOTE: On some managed PostgreSQL providers the app user cannot read pg_catalog views
     7# like pg_settings. Hibernate schema migration/metadata introspection can trigger that
     8# access during startup (e.g., when ddl-auto=update).
     9#
     10# Default to no automatic DDL. Override locally if your DB user has sufficient rights:
     11#   export SPRING_JPA_HIBERNATE_DDL_AUTO=update
     12spring.jpa.hibernate.ddl-auto=${SPRING_JPA_HIBERNATE_DDL_AUTO:none}
    713spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.PostgreSQLDialect
    814spring.jpa.show-sql=false
     
    1016spring.jpa.properties.hibernate.default_schema=trekr
    1117spring.jpa.properties.hibernate.hbm2ddl.create_namespaces=true
     18
     19# Avoid JDBC metadata access on boot (further reduces pg_catalog permission requirements)
     20spring.jpa.properties.hibernate.boot.allow_jdbc_metadata_access=false
    1221
    1322# ============================
  • db-scripts/dml.sql

    r8615885 r5c20c64  
    3333(30, 'vlado@example.com', 'vlado_ilievski', '1234');
    3434
    35 -- If USERS.user_id is an IDENTITY column, ensure its backing sequence is advanced
    36 -- past the inserted dummy ids so future inserts (e.g., app registration) don't
    37 -- try to reuse ids and fail with duplicate key errors.
    3835SELECT setval(
    3936        pg_get_serial_sequence('trekr.users', 'user_id'),
     
    109106(39, 25, '2026-03-28', 6050);
    110107
    111 -- If INCOMES.income_id is an IDENTITY column, advance its sequence past dummy ids.
    112108SELECT setval(
    113109        pg_get_serial_sequence('trekr.incomes', 'income_id'),
     
    191187(30, 20, 2300, '2026-02-10');
    192188
    193 -- If DAILY_INTAKES.daily_intake_id is an IDENTITY column, advance its sequence past dummy ids.
    194189SELECT setval(
    195190        pg_get_serial_sequence('trekr.daily_intakes', 'daily_intake_id'),
     
    223218(24, 17, 17, 40, 320, '2026-02-13', 'Strength');
    224219
    225 -- If TRAINING_SESSIONS.training_id is an IDENTITY column, advance its sequence past dummy ids.
    226220SELECT setval(
    227221        pg_get_serial_sequence('trekr.training_sessions', 'training_id'),
     
    263257(15, 20, 'Exam Prep', 3, '["Practice","Mock","Review"]');
    264258
    265 -- If CUSTOM_TRACKING_CATEGORIES.custom_tracking_id is an IDENTITY column, advance its sequence past dummy ids.
    266259SELECT setval(
    267260        pg_get_serial_sequence('trekr.custom_tracking_categories', 'custom_tracking_id'),
     
    331324(60, 'Review Exam', FALSE, NULL, 15);
    332325
    333 -- If TASKS.task_id is an IDENTITY column, advance its sequence past dummy ids.
    334326SELECT setval(
    335327        pg_get_serial_sequence('trekr.tasks', 'task_id'),
     
    430422(17, 15, 'NVDA', 640, '2026-02-10', 0.9);
    431423
    432 -- If ASSETS.asset_id is an IDENTITY column, advance its sequence past dummy ids.
    433424SELECT setval(
    434425        pg_get_serial_sequence('trekr.assets', 'asset_id'),
Note: See TracChangeset for help on using the changeset viewer.