|
|
@ -259,15 +259,15 @@ impl Browser { |
|
|
|
// Tools
|
|
|
|
// Tools
|
|
|
|
pub fn migrate(tx: &Transaction) -> Result<(), String> { |
|
|
|
pub fn migrate(tx: &Transaction) -> Result<(), String> { |
|
|
|
// Migrate self components
|
|
|
|
// Migrate self components
|
|
|
|
if let Err(e) = Database::init(&tx) { |
|
|
|
if let Err(e) = Database::init(tx) { |
|
|
|
return Err(e.to_string()); |
|
|
|
return Err(e.to_string()); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Delegate migration to childs
|
|
|
|
// Delegate migration to childs
|
|
|
|
/* @TODO
|
|
|
|
/* @TODO
|
|
|
|
header::migrate(&tx)?; */ |
|
|
|
header::migrate(tx)?; */ |
|
|
|
window::migrate(&tx)?; |
|
|
|
window::migrate(tx)?; |
|
|
|
widget::migrate(&tx)?; |
|
|
|
widget::migrate(tx)?; |
|
|
|
|
|
|
|
|
|
|
|
// Success
|
|
|
|
// Success
|
|
|
|
Ok(()) |
|
|
|
Ok(()) |
|
|
|