Skip to content

Conversation

@quangdutran
Copy link
Contributor

@quangdutran quangdutran commented May 7, 2025

Impact

  • [ x] Bug fix (non-breaking change which fixes expected existing functionality)
  • Enhancement/New feature (adds functionality without impacting existing logic)
  • Breaking change (fix or feature that would cause existing functionality to change)

Description

Change column type from tinyint to bool in mysql
Fix #6763

Things to be aware of

Things to worry about

Additional Context

@quangdutran
Copy link
Contributor Author

Test

Test with MySQL 5, MySQL 8, MySQL Connector/J 8.3.0, 9.3.0

Changeset:

databaseChangeLog:
  - changeSet:
      id: create-table-users
      author: YourName
      changes:
        - createTable:
            tableName: users
            columns:
              - column:
                  name: id
                  type: INT
                  constraints:
                    primaryKey: true
                    nullable: false
              - column:
                  name: name
                  type: VARCHAR(255)
              - column:
                  name: dob
                  type: timestamp
              - column:
                  name: married
                  type: boolean

Through Connector/J, married column has name=married, type=BIT (-7), precision=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MySQL and BOOLEAN column types - needs a bit more work.

1 participant