-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cf75a7d
commit 2bbb620
Showing
7 changed files
with
142 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,134 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<html xmlns:MadCap="http://www.madcapsoftware.com/Schemas/MadCap.xsd" MadCap:searchable="False"> | ||
<head><title><MadCap:variable name="Heading.Level1" /></title> | ||
<link rel="canonical" href="https://docs.liquibase.com/concepts/changelogs/attributes/dbms.html" /> | ||
<meta name="description" content="The ignore attribute is a string that specifies which database Liquibase should run a changeset on." /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
</head> | ||
<body> | ||
<h1><code>dbms</code> | ||
</h1> | ||
<p>The <code class="language-text">dbms</code> <MadCap:variable name="General.Param/Attribute" /> is a string that specifies which database <MadCap:variable name="General.Liquibase" /> should run a <MadCap:variable name="General.changeset" /> on. <code class="language-text">dbms</code> accepts "short names" of database management systems. Valid values are:</p> | ||
<ul> | ||
<li><code class="language-text">all</code>: allow this change to deploy to all supported databases</li> | ||
<li><code class="language-text">none</code>: allow this change to deploy nowhere</li> | ||
<li><code class="language-text">aerospike</code>: <a href="https://github.com/liquibase/liquibase-aerospike">Aerospike</a></li> | ||
<li><code class="language-text">asany</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/sap-sql-anywhere/">SAP SQL Anywhere</a></li> | ||
<li><code class="language-text">bigquery</code>: <a href="../../../start/tutorials/google-bigquery/home.htm">Google BigQuery</a></li> | ||
<li><code class="language-text">cassandra</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/cassandra/apache-cassandra/">Apache Cassandra</a></li> | ||
<li><code class="language-text">cloudspanner</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/cloud-spanner/">Spanner</a></li> | ||
<li><code class="language-text">cockroachdb</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/cockroachdb/">CockroachDB</a></li> | ||
<li><code class="language-text">cosmosdb</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/cosmosdb/">Azure Cosmos DB</a></li> | ||
<li><code class="language-text">databricks</code>: <a href="../../../start/tutorials/databricks/home.htm">Databricks</a></li> | ||
<li><code class="language-text">db2</code>: <a href="../../../start/tutorials/ibm-db2-luw.htm">IBM DB2 on LUW</a></li> | ||
<li><code class="language-text">db2i</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/db2-iseries/">IBM DB2 on i</a></li> | ||
<li><code class="language-text">db2z</code>: <a href="../../../start/tutorials/ibm-db2-zos.htm">IBM DB2 on z/OS</a></li> | ||
<li><code class="language-text">derby</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/apache-derby/">Apache Derby</a></li> | ||
<li><code class="language-text">dynamodb</code>: <a href="../../../start/tutorials/amazon-dynamodb-pro/home.htm">Amazon DynamoDB</a></li> | ||
<li><code class="language-text">edb</code>: <a href="../../../start/tutorials/enterprisedb.htm">EnterpriseDB</a></li> | ||
<li><code class="language-text">firebird</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/firebird/">Firebird</a></li> | ||
<li><code class="language-text">hana</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/sap-hana/">SAP HANA</a></li> | ||
<li><code class="language-text">h2</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/h2/">H2 Database Engine</a></li> | ||
<li><code class="language-text">hsqldb</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/hsqldb/">HyperSQL Database</a></li> | ||
<li><code class="language-text">informix</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/informix/">Informix</a></li> | ||
<li><code class="language-text">ingres</code>: Ingres Database</li> | ||
<li><code class="language-text">mariadb</code>: <a href="../../../start/tutorials/mariadb.html">MariaDB</a></li> | ||
<li><code class="language-text">maxdb</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/maxdb/">SAP MaxDB</a></li> | ||
<li><code class="language-text">mongodb</code>: <a href="../../../start/tutorials/mongodb-pro/home.htm">MongoDB</a></li> | ||
<li><code class="language-text">mssql</code>: <a href="../../../start/tutorials/ms-sql-server.html">Microsoft SQL Server</a></li> | ||
<li><code class="language-text">mysql</code>: <a href="../../../start/tutorials/mysql.html">MySQL</a></li> | ||
<li><code class="language-text">neo4j</code>: <a href="https://www.liquibase.com/databases/neo4j-graph-database">Neo4J Graph Database</a></li> | ||
<li><code class="language-text">oracle</code>: <a href="../../../start/tutorials/oracle.html">Oracle</a></li> | ||
<li><code class="language-text">postgresql</code>: <a href="../../../start/tutorials/postgresql/home.html">PostgreSQL</a></li> | ||
<li><code class="language-text">redshift</code>: <a href="../../../start/tutorials/amazon-redshift.htm">Amazon Redshift</a></li> | ||
<li><code class="language-text">snowflake</code>: <a href="../../../start/tutorials/snowflake.htm">Snowflake</a></li> | ||
<li><code class="language-text">sqlite</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/sqlite/">SQLite</a></li> | ||
<li><code class="language-text">sybase</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/sap-adaptive-server-enterprise-sap-ase/">SAP Adaptive Server</a></li> | ||
<li><code class="language-text">teradata</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/teradata/">Teradata</a></li> | ||
<li><code class="language-text">vertica</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/vertica/">Vertica</a></li> | ||
<li><code class="language-text">yugabytedb</code>: <a href="https://contribute.liquibase.com/extensions-integrations/directory/database-tutorials/yugabytedb/">YugabyteDB</a></li> | ||
</ul> | ||
<p>Separate multiple values with commas. Specify that a <MadCap:variable name="General.changeset"></MadCap:variable> is not applicable to a particular database type by prefixing with <code>!</code> The default value is <code class="language-text">all</code>.</p> | ||
<h2>Uses</h2> | ||
<p>If you're deploying a <MadCap:variable name="General.changelog" /> to multiple database management systems (DBMSs), you may want to ensure that a certain <MadCap:variable name="General.changeset" /> is only deployed to one type of database. For example, you might want to deploy some stored logic only to your PostgreSQL databases because the logic uses a keyword that doesn't exist on your Oracle databases. You can specify </p> | ||
<p class="note" MadCap:autonum="<b>Note: </b>"><MadCap:variable name="General.Liquibase" /> dynamically uses the database connection URL to determine what database you're currently connected to, not the value of <code class="language-text">dbms</code>.</p> | ||
<h2>Syntax</h2> | ||
<div class="js-tabs"> | ||
<ul class="js-tablist" data-hx="h3"> | ||
<li class="js-tablist__item"><a href="#sql_example" id="label_sql_example" class="js-tablist__link">SQL example</a> | ||
</li> | ||
<li class="js-tablist__item"><a href="#json_example" id="label_json_example" class="js-tablist__link">JSON example</a> | ||
</li> | ||
<li class="js-tablist__item"><a href="#yaml_example" id="label_yaml_example" class="js-tablist__link">YAML example</a> | ||
</li> | ||
<li class="js-tablist__item"><a href="#xml_example" id="label_xml_example" class="js-tablist__link">XML example</a> | ||
</li> | ||
</ul> | ||
<div id="sql_example" class="js-tabcontent"><pre xml:space="preserve"><code class="language-sql">--liquibase formatted sql | ||
|
||
--changeset your.name:1 dbms:postgresql,oracle | ||
create table person ( | ||
name varchar(255) | ||
);</code></pre> | ||
</div> | ||
<div id="json_example" class="js-tabcontent"><pre xml:space="preserve"><code class="language-json">{ | ||
"databaseChangeLog":[ | ||
{ | ||
"changeSet": { | ||
"author": "your.name", | ||
"id": "1", | ||
"dbms": "postgresql,oracle", | ||
"changes": [ | ||
{ | ||
"createTable": { | ||
"tableName": "person", | ||
"columns": [ | ||
{ | ||
"column": { | ||
"name": "name", | ||
"type": "varchar(255)" | ||
} | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
} | ||
}</code></pre> | ||
</div> | ||
<div id="yaml_example" class="js-tabcontent"><pre xml:space="preserve"><code class="language-yaml">databaseChangeLog: | ||
- changeSet: | ||
author: your.name | ||
id: 1 | ||
dbms: postgresql,oracle | ||
changes: | ||
- createTable: | ||
tableName: person | ||
columns: | ||
- column: | ||
name: name | ||
type: varchar(255)</code></pre> | ||
</div> | ||
<div id="xml_example" class="js-tabcontent"><pre xml:space="preserve"><code class="language-xml"><MadCap:snippetText src="../../../Z_Resources/Snippets/code/liquibase-xsd-xml-changelog-closed.flsnp" /> | ||
|
||
<changeSet author="your.name" id="1" dbms="postgresql,oracle"> | ||
<createTable tableName="person"> | ||
<column name="name" type="varchar(255)"/> | ||
</createTable> | ||
</changeSet> | ||
|
||
</databaseChangeLog></code></pre> | ||
</div> | ||
</div> | ||
<h2>Related links</h2> | ||
<ul> | ||
<li> | ||
<MadCap:xref href="../preconditions.html">Preconditions</MadCap:xref> | ||
</li> | ||
<li> | ||
<MadCap:xref href="../../../start/tutorials/home.html">[%=General.Liquibase%] Database Tutorials</MadCap:xref> | ||
</li> | ||
</ul> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters