chore: documentation for migrations

This commit is contained in:
Andrey Melnikov
2020-08-14 16:38:02 -07:00
parent 4e92586024
commit 9e694f1c34
3 changed files with 6 additions and 0 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -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