{backup,snapshot}: Log and display in control
This commit is contained in:
parent
3b112f1b8e
commit
630da9e12f
17 changed files with 294 additions and 44 deletions
|
|
@ -90,6 +90,7 @@ func (sql *SQL) QueryTable(silent bool, table string) (*gorm.DB, error) {
|
|||
|
||||
// WaitQueryTable waits for a connection to succeed via QueryTable
|
||||
func (sql *SQL) WaitQueryTable() error {
|
||||
// TODO: Establish a convention on when to wait for this!
|
||||
n := stream.FromDebug()
|
||||
return wait.Wait(func() bool {
|
||||
_, err := sql.QueryTable(true, models.InstanceTable)
|
||||
|
|
|
|||
|
|
@ -91,6 +91,11 @@ func (sql *SQL) Update(io stream.IOStream) error {
|
|||
&models.Metadatum{},
|
||||
models.MetadataTable,
|
||||
},
|
||||
{
|
||||
"snapshot",
|
||||
&models.Snapshot{},
|
||||
models.SnapshotTable,
|
||||
},
|
||||
}
|
||||
|
||||
// migrate all of the tables!
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue