Skip to content

Commit

Permalink
updated test db and ui/dist
Browse files Browse the repository at this point in the history
  • Loading branch information
ganigeorgiev committed Aug 10, 2022
1 parent 119e1fb commit 7f6049e
Show file tree
Hide file tree
Showing 15 changed files with 654 additions and 709 deletions.
2 changes: 2 additions & 0 deletions cmd/migrate.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ func init() {
return daos.New(db).ImportCollections(collections, true, nil)
}, func(db dbx.Builder) error {
// no revert since the configuration on the environment, on which
// the migration was executed, could have changed via the UI/API
return nil
})
}
Expand Down
8 changes: 4 additions & 4 deletions daos/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,12 @@ func (dao *Dao) SaveCollection(collection *models.Collection) error {
})
}

// ImportCollections imports the provided collections list in a single transaction.
// ImportCollections imports the provided collections list within a single transaction.
//
// If deleteMissing is set, all existing collections that are not present in the
// imported configuration will be deleted (including their related records table).
// NB1! If deleteMissing is set, all local collections and schema fields, that are not present
// in the imported configuration, WILL BE DELETED (including their related records data).
//
// NB! This method doesn't perform validations on the imported collections data!
// NB2! This method doesn't perform validations on the imported collections data!
// If you need validations, use [forms.CollectionsImport].
func (dao *Dao) ImportCollections(
importedCollections []*models.Collection,
Expand Down
Binary file modified tests/data/data.db
Binary file not shown.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 7f6049e

Please sign in to comment.