This repository has been archived by the owner on Apr 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change migration to use new version tracking
- Loading branch information
Showing
15 changed files
with
154 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,20 @@ | ||
package main | ||
|
||
var ( | ||
Version = "0.1.0-beta.1" | ||
// Rules for Versioning: | ||
// A release version cannot contains `dev` in it's pre-release tag. | ||
// The next development cycle MUST meet two requirements: | ||
// 1) The development cycle version must be higher in semver than the release. | ||
// Thus you either need to increase the patch or pre-release tag. You | ||
// SHOULD always increase the version by the smallest amount possible | ||
// (e.g. prefer 0.1.2 to 0.2.0) | ||
// 2) It must include `dev` as last part of prelease. | ||
// | ||
// Example if releasing 0.1.1, the next development cycle is 0.1.2-dev | ||
// Example if releasing 0.1.3-beta the next development cycle is 0.1.3-beta.1.dev | ||
// | ||
// When introducing a new SQL migration script always increment the numeral after | ||
// the `dev` tag. Add the SQL file corresponding to the /new/ version. | ||
Version = "0.1.0-beta.2-dev.0" | ||
CommitHash = "" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
File renamed without changes.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
pkg/pgmodel/test_migrations/sql/versions/0.10.0/1-toc_migration.sql
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
pkg/pgmodel/test_migrations/sql/versions/0.10.0/2-toc_migration.sql
This file was deleted.
Oops, something went wrong.
File renamed without changes.
1 change: 1 addition & 0 deletions
1
pkg/pgmodel/test_migrations/sql/versions/dev/0.10.0/1-migr_98_at.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
INSERT INTO log VALUES('migration 0.10.0=1'); |
1 change: 1 addition & 0 deletions
1
pkg/pgmodel/test_migrations/sql/versions/dev/0.10.0/2-1_mig.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
INSERT INTO log VALUES('migration 0.10.0=2'); |
File renamed without changes.
File renamed without changes.