Fails to create issue (SZ-107)
rk@tigase.net opened 1 week ago

Description

Issue creation fails with the following error:

org.hibernate.exception.SQLGrammarException:
JDBC exception executing SQL [SELECT NEXTVAL('global_issue_seq')]
ERROR: relation "global_issue_seq" does not exist

This prevents issue creation entirely.

Root Cause (Hypothesis)

The PostgreSQL sequence global_issue_seq is not created in the database.

Possible causes:

  • Missing Flyway migration
  • Migration ordering issue
  • Sequence created manually in development but not included in schema migration

Expected Behavior

The sequence global_issue_seq must exist in the database before issue creation.

Required Fix

  • Add Flyway migration to create sequence:

    CREATE SEQUENCE global_issue_seq START 1 INCREMENT 1;
    
  • Validate that fresh database setup runs cleanly.

  • Verify Flyway migration history consistency.

Acceptance Criteria

  • Fresh DB initialization works
  • Issue creation succeeds
  • No SQLGrammarException thrown
  • rk@tigase.net commented 1 week ago

    Resolved – fixed via Flyway migration creating global_issue_seq. Verified on clean DB.

  • rk@tigase.net changed state to 'Closed' 1 week ago
    Previous Value Current Value
    Open
    Closed
issue 1 of 1
Type
Bug
Priority
Blocker
Assignee
Version
1.9.1
Sprints
n/a
Customer
n/a
Issue Votes (0)
Watchers (3)
Reference
SZ-107
Please wait...
Page is in error, reload to recover