Mejora y simplifica la gestión global de acciones
This commit is contained in:
parent
7c8f51ba86
commit
67ddb8d899
29 changed files with 184 additions and 206 deletions
|
|
@ -19,7 +19,7 @@ enum NodeType {
|
|||
// different from the current type name if the locked field is 0.
|
||||
}
|
||||
|
||||
pub struct Migration;
|
||||
pub_migration!(Migration);
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl MigrationTrait for Migration {
|
||||
|
|
@ -82,9 +82,3 @@ impl MigrationTrait for Migration {
|
|||
.await
|
||||
}
|
||||
}
|
||||
|
||||
impl MigrationName for Migration {
|
||||
fn name(&self) -> &str {
|
||||
module_name!()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ enum Node {
|
|||
Translate, // A boolean indicating whether this translation page needs to be updated.
|
||||
}
|
||||
|
||||
pub struct Migration;
|
||||
pub_migration!(Migration);
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl MigrationTrait for Migration {
|
||||
|
|
@ -105,9 +105,3 @@ impl MigrationTrait for Migration {
|
|||
.await
|
||||
}
|
||||
}
|
||||
|
||||
impl MigrationName for Migration {
|
||||
fn name(&self) -> &str {
|
||||
module_name!()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ enum NodeAccess {
|
|||
// this node.
|
||||
}
|
||||
|
||||
pub struct Migration;
|
||||
pub_migration!(Migration);
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl MigrationTrait for Migration {
|
||||
|
|
@ -65,9 +65,3 @@ impl MigrationTrait for Migration {
|
|||
.await
|
||||
}
|
||||
}
|
||||
|
||||
impl MigrationName for Migration {
|
||||
fn name(&self) -> &str {
|
||||
module_name!()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ enum NodeRevision {
|
|||
// be displayed at the top of lists in which it appears.
|
||||
}
|
||||
|
||||
pub struct Migration;
|
||||
pub_migration!(Migration);
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl MigrationTrait for Migration {
|
||||
|
|
@ -83,9 +83,3 @@ impl MigrationTrait for Migration {
|
|||
.await
|
||||
}
|
||||
}
|
||||
|
||||
impl MigrationName for Migration {
|
||||
fn name(&self) -> &str {
|
||||
module_name!()
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue