feat: add basic deletion finding
This commit is contained in:
@@ -25,11 +25,11 @@ func KickoffDatabase(workDir string) (*gorm.DB, error) {
|
||||
|
||||
// try to use GORM automigrate if the schema changes
|
||||
if err := db.AutoMigrate(
|
||||
&Command{},
|
||||
&File{},
|
||||
&Tenant{},
|
||||
&Group{},
|
||||
&Device{},
|
||||
&Command{}, // app state and command status
|
||||
&File{}, // files database for keeping track
|
||||
&Tenant{}, // table for tenants and its data
|
||||
&Group{}, // group table for privileges
|
||||
&Device{}, // devices table
|
||||
); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user