Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Aug 21, 2023. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: 13k/migrate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: r3code/migrate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
  • 9 commits
  • 3 files changed
  • 2 contributors

Commits on Dec 4, 2019

  1. CLI: Improve migration creation.

    * Validates migration version on creation, to avoid creation of duplicated versions
    * Uses `os.OpenFile` with `O_CREATE|O_EXCL` to create files to avoid file collisions
    * Uses `filepath.Join` to concatenate paths, making `cleanPath()` not necessary
    * Prints generated filenames
    * Fixes golang-migrate#238
    * Supersedes golang-migrate#250
    13k committed Dec 4, 2019
    Configuration menu
    Copy the full SHA
    df00bdc View commit details
    Browse the repository at this point in the history

Commits on Dec 5, 2019

  1. Configuration menu
    Copy the full SHA
    7fa10e1 View commit details
    Browse the repository at this point in the history

Commits on Feb 28, 2020

  1. feat: print out an abs path

    Better for Windows OS when specify -dir as /subdir, user will see C:/subdir/0001_name.up.sql rather than /subdir/0001_name.up.sql
    r3code committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    a0885f0 View commit details
    Browse the repository at this point in the history
  2. test: fixed abs path test fail for OS Windows

    abs path tests fails because filepath.IsAbs() treats `/subdir` path as invalid abs path at windows when drive letter is not present
    r3code committed Feb 28, 2020
    Configuration menu
    Copy the full SHA
    21961b1 View commit details
    Browse the repository at this point in the history

Commits on Mar 2, 2020

  1. feat: print absolute path for created files

    Better for Windows OS systems where `/path` can be interpreted in different ways depending on working dir
    r3code committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    08007db View commit details
    Browse the repository at this point in the history
  2. test: corrected tests for OS Windows

    OS Windows has different interpretation of `/path`, it depends on working dir.
    If working dir D:\test it interprets `/path` as `D:\path`
    r3code committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    83beea1 View commit details
    Browse the repository at this point in the history
  3. test: fixed dir invalid test

    Linux OS has less restriction on a filepath than Windows, so path invalid in windows is perfectly valid for Linux. The only invalid dir name in Linux is one ending with null string terminator (\000)
    r3code committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    2ec12be View commit details
    Browse the repository at this point in the history
  4. Merge branch 'cli-create-validate-version' of https://github.com/r3co…

    …de/migrate into cli-create-validate-version
    r3code committed Mar 2, 2020
    Configuration menu
    Copy the full SHA
    5105d0b View commit details
    Browse the repository at this point in the history
  5. Merge pull request #1 from r3code/cli-create-validate-version

    mege new feature
    r3code authored Mar 2, 2020
    Configuration menu
    Copy the full SHA
    34f5b89 View commit details
    Browse the repository at this point in the history
Loading