mirror of
https://github.com/onepanelio/onepanel.git
synced 2025-09-26 17:51:13 +08:00
chore: documentation for migrations
This commit is contained in:
@@ -415,6 +415,7 @@ func initialize20200812104328() {
|
||||
}
|
||||
}
|
||||
|
||||
// Up20200812104328 runs the migration to update MaskRCNN and TF_OD templates
|
||||
func Up20200812104328(tx *sql.Tx) error {
|
||||
// This code is executed when the migration is applied.
|
||||
client, err := getClient()
|
||||
@@ -490,6 +491,7 @@ func Up20200812104328(tx *sql.Tx) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Down20200812104328 does nothing
|
||||
func Down20200812104328(tx *sql.Tx) error {
|
||||
// This code is executed when the migration is rolled back.
|
||||
return nil
|
||||
|
@@ -153,6 +153,7 @@ func initialize20200812113316() {
|
||||
}
|
||||
}
|
||||
|
||||
// Up20200812113316 runs the go migration to update cvat template
|
||||
func Up20200812113316(tx *sql.Tx) error {
|
||||
// This code is executed when the migration is applied.
|
||||
client, err := getClient()
|
||||
@@ -205,6 +206,7 @@ func Up20200812113316(tx *sql.Tx) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Down20200812113316 does nothing
|
||||
func Down20200812113316(tx *sql.Tx) error {
|
||||
// This code is executed when the migration is rolled back.
|
||||
return nil
|
||||
|
@@ -12,6 +12,7 @@ func initialize20200814160856() {
|
||||
}
|
||||
}
|
||||
|
||||
// Up20200814160856 runs a migration to add description to jupyterlab template
|
||||
func Up20200814160856(tx *sql.Tx) error {
|
||||
// This code is executed when the migration is applied.
|
||||
// This code is executed when the migration is applied.
|
||||
@@ -50,6 +51,7 @@ func Up20200814160856(tx *sql.Tx) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Down20200814160856 does nothing
|
||||
func Down20200814160856(tx *sql.Tx) error {
|
||||
// This code is executed when the migration is rolled back.
|
||||
return nil
|
||||
|
Reference in New Issue
Block a user