This file contains hidden or 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
liquibase | |
--driver=com.microsoft.sqlserver.jdbc.SQLServerDriver | |
--classpath="C:\\Program Files\\Microsoft JDBC Driver 6.0 for SQL Server\\sqljdbc_6.0\\enu\\jre8\\sqljdbc42.jar" | |
--url="jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks2017;integratedSecurity=false;" | |
--changeLogFile="D:\Source\generateChangeLog.xml" | |
--username=liquibase | |
--password=liquibase@123 | |
--logLevel=info | |
tag dbchange-ci-1.0.0.219 |
This file contains hidden or 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
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | |
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> | |
<changeSet author="mohitgoyal" id="20190304224600"> | |
<preConditions onFail="HALT"> | |
<sqlCheck expectedResult="0">select count(*) from customer</sqlCheck> | |
</preConditions> | |
<comment>Make sure that no data exists in the table before you drop it</comment> | |
<dropTable tableName="customer"/> | |
</changeSet> | |
</databaseChangeLog> |
This file contains hidden or 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
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | |
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> | |
<changeSet author="mohitgoyal" id="20190304223500"> | |
<preConditions onFail="HALT"> | |
<tableExists schemaName="dbo" tableName="CustomerDetails"/> | |
</preConditions> | |
<addColumn schemaName="dbo" tableName="CustomerDetails"> | |
<column name="CustomerAddress" type="varchar(255)"/> | |
</addColumn> | |
</changeSet> |
This file contains hidden or 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
--liquibase formatted sql | |
--changeset mohitgoyal:20190304153300 context:development | |
CREATE TABLE [dbo].[ErrorLog]( | |
[ErrorLogID] [int] IDENTITY(1,1) NOT NULL, | |
[ErrorTime] [datetime] NOT NULL, | |
[UserName] [sysname] NOT NULL, | |
[ErrorNumber] [int] NOT NULL, | |
[ErrorSeverity] [int] NULL, |
This file contains hidden or 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
--- # Quick ansible playbook for downloading liquibase | |
- name: download liquibase using ansible | |
hosts: dbservers | |
connection: ssh | |
sudo: yes | |
user: user | |
tasks: | |
- name: Create liquibase directory | |
file: | |
name: /opt/liquibase |
This file contains hidden or 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
driver:com.microsoft.sqlserver.jdbc.SQLServerDriver | |
classpath:..\\Program Files\\Microsoft JDBC Driver 6.0 for SQL Server\\sqljdbc_6.0\\enu\\jre8\\sqljdbc42.jar | |
url:jdbc:sqlserver://localhost:1433;databaseName=AdventureWorksProd;integratedSecurity=false; | |
username:liquibase | |
password:liquibase@123 | |
logLevel:debug | |
referenceUrl:jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks2017;integratedSecurity=false; | |
referenceUsername:liquibase | |
referencePassword:liquibase@123 |
This file contains hidden or 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
liquibase | |
--driver=com.microsoft.sqlserver.jdbc.SQLServerDriver | |
--classpath="C:\\Program Files\\Microsoft JDBC Driver 6.0 for SQL Server\\sqljdbc_6.0\\enu\\jre8" | |
--url="jdbc:sqlserver://localhost:1433;databaseName=AdventureWorksProd;integratedSecurity=false;" | |
--username=liquibase | |
--password=liquibase@123 | |
--logLevel=debug | |
diff | |
--referenceUrl="jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks2017;integratedSecurity=false;" | |
--referenceUsername=liquibase |
This file contains hidden or 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
liquibase | |
--driver=com.microsoft.sqlserver.jdbc.SQLServerDriver | |
--classpath="C:\\Program Files\\Microsoft JDBC Driver 6.0 for SQL Server\\sqljdbc_6.0\\enu\\jre8" | |
--url="jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks2017;integratedSecurity=false;" | |
--changeLogFile="D:\Source\generateChangeLog--PersonSchema.xml" | |
--username=liquibase | |
--password=liquibase@123 | |
--logLevel=info | |
--defaultSchemaName=dbo | |
--diffTypes=data |
This file contains hidden or 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
liquibase | |
--driver=com.microsoft.sqlserver.jdbc.SQLServerDriver | |
--classpath="C:\\Program Files\\Microsoft JDBC Driver 6.0 for SQL Server\\sqljdbc_6.0\\enu\\jre8" | |
--url="jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks2017;integratedSecurity=false;" | |
--changeLogFile="D:\Source\generateChangeLog--PersonSchema.xml" | |
--username=liquibase | |
--password=liquibase@123 | |
--logLevel=info | |
--defaultSchemaName=Person | |
generateChangeLog |
This file contains hidden or 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
liquibase | |
--driver=com.microsoft.sqlserver.jdbc.SQLServerDriver | |
--classpath="C:\\Program Files\\Microsoft JDBC Driver 6.0 for SQL Server\\sqljdbc_6.0\\enu\\jre8\\sqljdbc42.jar" | |
--url="jdbc:sqlserver://localhost:1433;databaseName=AdventureWorks2017;integratedSecurity=false;" | |
--changeLogFile="D:\Source\generateChangeLog.xml" | |
--username=liquibase | |
--password=liquibase@123 | |
--logLevel=info | |
generateChangeLog |