mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-23 22:40:24 +02:00
(no tests) collection indexes scaffoldings
This commit is contained in:
1 parent
695c20a969
commit
a0ec5707d1
11 files changed
+350
-87
No files matched your search
@@ -64,6 +64,10 @@ func (dao *Dao) SaveView(name string, selectQuery string) error {
|
||||
// fetch the view table info to ensure that the view was created
|
||||
// because missing tables or columns won't return an error
|
||||
if _, err := txDao.GetTableInfo(name); err != nil {
|
||||
// manually cleanup previously created view in case the func
|
||||
// is called in a nested transaction and the error is discarded
|
||||
txDao.DeleteView(name)
|
||||
|
||||
return err
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user