Skip to content

[Cadence Bug] missing setup schema version tables in schema setup job #1308

Open
@longquanzheng

Description

@longquanzheng

Describe the bug

args: ['sh', '-c', 'cadence-sql-tool create --db {{ $storeConfig.sql.database }}']

In the schema setup job, it creates a database only.
this is not enough.
The below step should also be executed

./cadence-sql-tool --ep $SQL_HOST_ADDR -p $port --plugin mysql --db cadence setup-schema -v 0.0 -- this sets up just the schema version tables with initial version of 0.0

See docs
Steps to reproduce the issue: https://github.com/uber/cadence/blob/master/tools/sql/README.md

I haven’t run it myself, but the issue is reported by users

Expected behavior

The setup schema command should be run to create schema version tables
Screenshots

Additional context

https://uber-cadence.slack.com/archives/CKBQ9LTTM/p1636700389022300?thread_ts=1636527868.004900&channel=CKBQ9LTTM&message_ts=1636700389.022300

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions