我正在尝试找到一个可以满足两个要求的有效 .gitconfig 设置:
我当前的版本在连接到我的内部存储库时出现访问问题。我想最后两条指令不知何故是错误的。
[user]
name = John Doe
email = john.doe@company.com
[https]
proxy = http://johndoe:password@1.2.3.4:6666
[http]
proxy = http://johndoe:password@1.2.3.4:6666
[http "https://repo.company.com/"]
sslVerify = false
[https "https://repo.company.com/"]
sslVerify = false
Run Code Online (Sandbox Code Playgroud)
对于这种情况,正确的语法是什么?我使用 Git 2.12.2.windows.2。
我是Liquibase的新手,我设置了一个相当简单的项目来熟悉Liquibase.不幸的是,我似乎在最初的步骤中失败了,这非常令人沮丧.
首先是我的changelog.xml:
<?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"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.1.xsd http://www.liquibase.org/xml/ns/dbchangelog-ext
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<preConditions>
<dbms type="mysql"/>
</preConditions>
<changeSet id="1" author="maik">
<sql dbms="mysql" endDelimiter=";">
CREATE SCHEMA ods
</sql>
<createTable tableName="department">
<column name="id" type="int">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="name" type="varchar(50)">
<constraints nullable="false"/>
</column>
<column name="active" type="boolean" defaultValueBoolean="true"/>
</createTable>
</changeSet>
</databaseChangeLog>
Run Code Online (Sandbox Code Playgroud)
除此之外,我有一个liquibase.properties:
driver=com.mysql.jdbc.Driver
classpath=lib/mysql-connector-java-5.1.41-bin.jar
url=jdbc:mysql://localhost/prime
username=bla
password=bla
Run Code Online (Sandbox Code Playgroud)
我的pom.xml看起来像这样:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>himstedt</groupId>
<artifactId>liquibase</artifactId>
<version>1.0-SNAPSHOT</version>
<dependencies>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.41</version>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
<version>3.5.3</version>
</dependency>
</dependencies> …Run Code Online (Sandbox Code Playgroud)