Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-2684

Database migration to a MySQL database fails if there is a - or . in the database name.

      Reported through answers:

      https://answers.atlassian.com/questions/80307/stash-fails-on-mysql-migration-if-the-database-name-has-a-dash-in-the-name

      A workaround is to choose a database name that does not have a '-' or '.' character in it.

          Form Name

            [BSERV-2684] Database migration to a MySQL database fails if there is a - or . in the database name.

            CharlesA added a comment -

            Upgrading to Liquibase 3.x is not trivial.

            CharlesA added a comment - Upgrading to Liquibase 3.x is not trivial.

            Are we already on that version of Liquibase or are we going to upgrade to ?

            Kostya Marchenko (Inactive) added a comment - Are we already on that version of Liquibase or are we going to upgrade to ?

            jhinch (Atlassian) added a comment - - edited

            This is fixed in liquibase 3.0.2 (the latest version)

            jhinch (Atlassian) added a comment - - edited This is fixed in liquibase 3.0.2 (the latest version)

            CharlesA added a comment -

            This isn't really MySQL specific. Liquibase isn't escaping that specific table instance.

            This should be fixed in a new version of Liquibase (for MySQL)

            https://github.com/liquibase/liquibase/commit/2d2ad9a3242ea4de20b856cecfcdfe3a718046f7#L2R117

            I've also created a pull request to fix it for future versions.

            https://github.com/liquibase/liquibase/pull/75

            CharlesA added a comment - This isn't really MySQL specific. Liquibase isn't escaping that specific table instance. This should be fixed in a new version of Liquibase (for MySQL) https://github.com/liquibase/liquibase/commit/2d2ad9a3242ea4de20b856cecfcdfe3a718046f7#L2R117 I've also created a pull request to fix it for future versions. https://github.com/liquibase/liquibase/pull/75

              Unassigned Unassigned
              mheemskerk Michael Heemskerk (Inactive)
              Affected customers:
              0 This affects my team
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: