Skip to content

Conversation

@joc-a
Copy link
Contributor

@joc-a joc-a commented Feb 10, 2025

Description

Summary of the change: Change timestamp column type for H2 from "DATETIME(9)" to "TIMESTAMP(9)"

Detailed description:

  • Why:
  1. Oracle, PostgreSQL, and MariaDB are the only ones that use type "TIMESTAMP" for the timestamp column. H2 also has that type but "DATETIME" was being used instead for some reason.
  2. This is a preparation step that makes detecting column type change for migration easier.
  • How:
    Overrided timestampType() in H2DataTypeProvider

⚠️ Note: Some issues were discovered and fixed in the Pull Request Title Validation and Commit Message Validation scripts.


Type of Change

Please mark the relevant options with an "X":

  • Bug fix
  • New feature
  • Documentation update
  • Other: Column type change

Updates/remove existing public API methods:

  • Is breaking change

Affected databases:

  • MariaDB
  • Mysql5
  • Mysql8
  • Oracle
  • Postgres
  • SqlServer
  • H2
  • SQLite

Checklist

  • Unit tests are in place
  • The build is green (including the Detekt check)
  • All public methods affected by my PR has up to date API docs
  • Documentation for my change is up to date

Related Issues

@joc-a joc-a force-pushed the joc/exposed-727 branch 7 times, most recently from c72a332 to bce334d Compare February 10, 2025 12:00
…E(9)" to "TIMESTAMP(9)"

This is a preparation step that makes detecting column type change for migration easier.
run: |
# Regex for Conventional Commits specification
COMMIT_REGEX="^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(\([^\)]*\))?:\s?(EXPOSED-[0-9]+\s?)?.+$"
COMMIT_REGEX="^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(!)?(\([^\)]*\))?:\s?(EXPOSED-[0-9]+\s?)?.+$"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modified regular expression to allow for optional "!" (to denote breaking changes) after the commit type

# Get the PR title
PR_TITLE="${{ github.event.pull_request.title }}"
PR_TITLE_REGEX="^(build|chore|ci|docs|feat|fix|perf|refactor|revert|style|test)(!)?(\([^\)]*\))?:\s?(EXPOSED-[0-9]+\s?)?.+$"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Modified regular expression to allow for optional "!" (to denote breaking changes) after the commit type

Comment on lines +28 to +29
env:
PR_TITLE: ${{ github.event.pull_request.title }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@joc-a joc-a marked this pull request as ready for review February 10, 2025 12:39
@joc-a joc-a requested a review from obabichevjb February 10, 2025 12:40
@joc-a joc-a merged commit 7546c72 into main Feb 11, 2025
12 checks passed
@joc-a joc-a deleted the joc/exposed-727 branch February 11, 2025 11:06
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.

3 participants