Skip to main content

RenameIndex

Trait RenameIndex 

Source
pub trait RenameIndex: Schema {
    // Required method
    fn rename_index(
        &self,
        table: &str,
        from: &str,
        to: &str,
    ) -> Result<Statement>;
}
Expand description

Renaming indexes.

PHP: Schema\Feature\RenameIndex.

Required Methods§

Source

fn rename_index(&self, table: &str, from: &str, to: &str) -> Result<Statement>

Renames index from of table to to.

PHP: renameIndex().

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§