-
Notifications
You must be signed in to change notification settings - Fork 1
Comparing changes
Open a pull request
base repository: 13k/migrate
base: master
head repository: r3code/migrate
compare: master
- 9 commits
- 3 files changed
- 2 contributors
Commits on Dec 4, 2019
-
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
Configuration menu - View commit details
-
Copy full SHA for df00bdc - Browse repository at this point
Copy the full SHA df00bdcView commit details
Commits on Dec 5, 2019
-
Configuration menu - View commit details
-
Copy full SHA for 7fa10e1 - Browse repository at this point
Copy the full SHA 7fa10e1View commit details
Commits on Feb 28, 2020
-
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
Configuration menu - View commit details
-
Copy full SHA for a0885f0 - Browse repository at this point
Copy the full SHA a0885f0View commit details -
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
Configuration menu - View commit details
-
Copy full SHA for 21961b1 - Browse repository at this point
Copy the full SHA 21961b1View commit details
Commits on Mar 2, 2020
-
feat: print absolute path for created files
Better for Windows OS systems where `/path` can be interpreted in different ways depending on working dir
Configuration menu - View commit details
-
Copy full SHA for 08007db - Browse repository at this point
Copy the full SHA 08007dbView commit details -
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`
Configuration menu - View commit details
-
Copy full SHA for 83beea1 - Browse repository at this point
Copy the full SHA 83beea1View commit details -
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)
Configuration menu - View commit details
-
Copy full SHA for 2ec12be - Browse repository at this point
Copy the full SHA 2ec12beView commit details -
Merge branch 'cli-create-validate-version' of https://github.com/r3co…
…de/migrate into cli-create-validate-version
Configuration menu - View commit details
-
Copy full SHA for 5105d0b - Browse repository at this point
Copy the full SHA 5105d0bView commit details -
Merge pull request #1 from r3code/cli-create-validate-version
mege new feature
Configuration menu - View commit details
-
Copy full SHA for 34f5b89 - Browse repository at this point
Copy the full SHA 34f5b89View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff master...master