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
{ | |
"databaseChangeLog": [{ | |
"changeSet": { | |
"id": "20190221092200", | |
"author": "mohitgoyal", | |
"changes": [{ | |
"createTable": { | |
"catalogName": "AdventureWorks2017", | |
"columns": [{ | |
"column": { |
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=AdventureWorks2017;integratedSecurity=false; | |
changeLogFile: C:\\Source\\changelog-01.json | |
username: liquibase | |
password: liquibase@123 | |
logLevel: info |
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\master.xml" | |
--username=liquibase | |
--password=liquibase@123 | |
Update |
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:20190221092200 | |
CREATE TABLE [dbo].[CustomerDetails]( | |
[CustomerTypeID] [nchar](10) NULL, | |
[CustomerDesc] [nvarchar](max) NULL | |
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] | |
GO |
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
{ | |
"databaseChangeLog": [{ | |
"changeSet": { | |
"id": "20190221092200", | |
"author": "mohitgoyal", | |
"changes": [{ | |
"createTable": { | |
"catalogName": "AdventureWorks2017", | |
"columns": [{ | |
"column": { |
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
changeSet: | |
id: 20190221092200 | |
author: mohitgoyal | |
changes: | |
- createTable: | |
catalogName: AdventureWorks2017 | |
columns: | |
- column: | |
name: CustomerTypeID | |
type: nchar(10) |
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="20190221092200"> | |
<createTable tableName="dbo.CustomerDetails"> | |
<column name="CustomerTypeID" type="nchar(10)"/> | |
<column name="CustomerDesc" type="nvarchar (max) (16)"/> | |
</createTable> | |
</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
<changeSet author="mohit" id="91"> | |
<createTable tableName="Customers"> | |
<column name="CustomerID" type="nchar(5)"> | |
<constraints primaryKey="true" primaryKeyName="PK_Customers"/> | |
</column> | |
<column name="CompanyName" type="nvarchar(40)"> | |
<constraints nullable="false"/> | |
</column> | |
<column name="ContactName" type="nvarchar(30)"/> | |
<column name="ContactTitle" type="nvarchar(30)"/> |
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.0" encoding="UTF-8"?> | |
<databaseChangeLog | |
xmlns="http://www.liquibase.org/xml/ns/dbchangelog" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog | |
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd"> | |
</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
$outerLoopMax = 255 | |
$innerLoopMax = 126 | |
for ($outerCounter=1; $outerCounter -lt $outerLoopMax; $outerCounter++) { | |
Write-Progress -Activity "Main loop progress:" ` | |
-PercentComplete ([int](100 * $outerCounter / $outerLoopMax)) ` | |
-CurrentOperation ("Completed {0}%" -f ([int](100 * $outerCounter / $outerLoopMax))) ` | |
-Status ("Outer loop working on item [{0}]" -f $outerCounter) ` | |
-Id 1 | |