renameTrigger

Renames a trigger.

Available attributes

Name Description Required for Supports Since
catalogName Name of the catalog oracle, postgresql
newTriggerName all all
oldTriggerName all all
schemaName Name of the schema all
tableName Name of the table postgresql all

XML example

<changeSet  author="liquibase-docs"  id="renameTrigger-example">  
    <pro:renameTrigger  catalogName="cat"  
            newTriggerName="A String"  
            oldTriggerName="A String"  
            schemaName="public"  
            tableName="person"/>  
</changeSet>

YAML example

changeSet:  
  id:  renameTrigger-example  
  author:  liquibase-docs  
  changes:  
  -  renameTrigger:  
      catalogName:  cat  
      newTriggerName:  A String  
      oldTriggerName:  A String  
      schemaName:  public  
      tableName:  person

JSON example

{  "changeSet":  {  "id":  "renameTrigger-example",  "author":  "liquibase-docs",  "changes":  [  {  "renameTrigger":  {  "catalogName":  "cat",  "newTriggerName":  "A String",  "oldTriggerName":  "A String",  "schemaName":  "public",  "tableName":  "person"  }  }]  }  }

SQL example

sp_rename  '[public].A String',  
 'A String';

Database support

Database Notes Auto rollback
DB2/LUW Not Supported Yes
DB2/z Not Supported Yes
Derby Not Supported Yes
Firebird Not Supported Yes
H2 Not Supported Yes
HyperSQL Not Supported Yes
INGRES Not Supported Yes
Informix Not Supported Yes
MariaDB Not Supported Yes
MySQL Not Supported Yes
Oracle Supported Yes
PostgreSQL Supported Yes
SQL Server Supported Yes
SQLite Not Supported Yes
Sybase Not Supported Yes
Sybase Anywhere Not Supported Yes