Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement altering column with SET DEFAULT and DROP DEFAULT #152

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from

Commits on Aug 15, 2024

  1. Update CHANGE COLUMN logic to execute a callback for each column

    The CHANGE COLUMN logic can be extracted to a reusable method now. I'm only keeping
    the changes in a separate commit for a more useful diff.
    
    The update column callback can be used to modify any columns. Since it is also provided with
    the old column definition, it will enable column-modifying statements withtout a full column
    definition (like SET/DROP default). In the future, it should also unlock implementing expressions
    like MODIFY COLUMN and DROP COLUMN and enable modifying multiple columns at once
    to avoid unnecessary table copying.
    JanJakes committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    5cd057d View commit details
    Browse the repository at this point in the history
  2. Extract CHANGE COLUMN logic to a private method

    This completes the changes in the previous commit.
    JanJakes committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    86ba0e5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d0c4b6d View commit details
    Browse the repository at this point in the history