1
0
mirror of https://github.com/pocketbase/pocketbase.git synced 2025-11-24 07:04:51 +02:00

restore crc32 checksum for the colelction and field ids

This commit is contained in:
Gani Georgiev
2024-11-04 10:51:32 +02:00
parent 83d91b3dd5
commit 8d0e4a0460
3 changed files with 81 additions and 36 deletions

View File

@@ -65,6 +65,10 @@ type optionsValidator interface {
}
func (validator *collectionValidator) run() error {
if validator.original.IsNew() {
validator.new.updateGeneratedIdIfExists(validator.app)
}
// generate fields from the query (overwriting any explicit user defined fields)
if validator.new.IsView() {
validator.new.Fields, _ = validator.app.CreateViewFields(validator.new.ViewQuery)