-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
226 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,6 +32,7 @@ go.work | |
# build | ||
cloud-backend | ||
cloud-backend.exe | ||
main | ||
|
||
# docker overrides | ||
docker-compose.override.yml |
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,7 +1,9 @@ | ||
{ | ||
"cSpell.words": [ | ||
"daos", | ||
"labstack", | ||
"Middlewares", | ||
"pocketbase" | ||
"pocketbase", | ||
"unstar" | ||
] | ||
} |
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,9 +1,17 @@ | ||
# Upgrade guide | ||
|
||
## From v1.0.1 to v1.1.0 | ||
|
||
This version adds stargazers. | ||
|
||
1. import new schema first | ||
2. get the new binary or Dockerfile and run `cloud-backend`, make sure everything works as it was before (don't forget to backup `pb_data` data) | ||
3. upgrade frontend to `v1.1.0` | ||
|
||
## From v1.0.0 to v1.0.1 | ||
|
||
This version adds to new custom endpoints for fetching tune and ini file. | ||
|
||
1. get the new binary and run `cloud-backend`, make sure everything works as it was before (don't forget to backup `pb_data` data) | ||
1. get the new binary or Dockerfile and run `cloud-backend`, make sure everything works as it was before (don't forget to backup `pb_data` data) | ||
2. upgrade frontend to `v1.0.1` | ||
3. import new schema |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package migrations | ||
|
||
import ( | ||
"github.com/pocketbase/dbx" | ||
m "github.com/pocketbase/pocketbase/migrations" | ||
) | ||
|
||
func init() { | ||
m.Register(func(db dbx.Builder) error { | ||
// add up queries... | ||
db.CreateUniqueIndex("stargazers", "unique_stargazers_on_user_tune", "user", "tune").Execute() | ||
|
||
return nil | ||
}, func(db dbx.Builder) error { | ||
// add down queries... | ||
db.DropIndex("stargazers", "unique_stargazers_on_user_tune").Execute() | ||
|
||
return nil | ||
}) | ||
} |
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