添加链接
link管理
链接快照平台
  • 输入网页链接,自动生成快照
  • 标签化管理网页链接

To run this Change Type , follow these steps:

  • Add the Change Type to your changeset , as shown in the examples on this page.
  • Specify any required attribute s. Use the table on this page to see which ones your database requires.
  • Deploy your changeset by running the update command:
  • liquibase update

    Available attribute s

    Description Required for Supports
    <databaseChangeLog
        xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
        xmlns:pro="http://www.liquibase.org/xml/ns/pro"
        xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
            http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd
            http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd
            http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd">
        <changeSet  author="liquibase-docs"  id="renameTable-example">
            <renameTable  catalogName="cat"
                newTableName="employee"
                oldTableName="person"
                schemaName="public"/>
        </changeSet>
    </databaseChangeLog>
    databaseChangeLog:
    -  changeSet:
        id:  renameTable-example
        author:  liquibase-docs
        changes:
        -  renameTable:
            catalogName:  cat
            newTableName:  employee
            oldTableName:  person
            schemaName:  public
    "databaseChangeLog": [ "changeSet": { "id": "renameTable-example", "author": "liquibase-docs", "changes": [ "renameTable": { "catalogName": "cat", "newTableName": "employee", "oldTableName": "person", "schemaName": "public"
    --liquibase formatted sql
    --changeset liquibase-docs:renameTable-example
    ALTER  TABLE  cat.person  RENAME TO  cat.employee;

    Database support

    Database Notes Auto Rollback

    © 2024 Liquibase Inc. All Rights Reserved. Liquibase is a registered trademark of Liquibase Inc.
    (737) 402-7187