-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/4.1.x' into LB-209
- Loading branch information
Showing
343 changed files
with
16,567 additions
and
2,759 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#!/usr/bin/env bash | ||
|
||
/opt/mssql/bin/sqlservr & | ||
|
||
echo "Waiting for server to start...." | ||
#do this in a loop because the timing for when the SQL instance is ready is indeterminate | ||
for i in {1..50}; | ||
do | ||
/opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P ${SA_PASSWORD} -d master -i /docker-entrypoint-initdb.d/mssql-init.sql | ||
if [ $? -eq 0 ] | ||
then | ||
echo "mssql-init.sh completed" | ||
break | ||
else | ||
echo "not ready yet..." | ||
sleep 5 | ||
fi | ||
done | ||
|
||
sleep infinity |
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,41 @@ | ||
DECLARE @dataPath varchar(256); | ||
DECLARE @logPath varchar(256); | ||
SET @dataPath=(SELECT CAST(serverproperty('InstanceDefaultDataPath') AS varchar(256))); | ||
SET @logPath=(SELECT CAST(serverproperty('InstanceDefaultLogPath') AS varchar(256))); | ||
|
||
CREATE LOGIN [lbuser] with password=N'LiquibasePass1', CHECK_EXPIRATION=OFF; | ||
GO | ||
|
||
CREATE DATABASE lbcat; | ||
GO | ||
|
||
EXEC lbcat..sp_addsrvrolemember @loginame = N'lbuser', @rolename = N'sysadmin' | ||
GO | ||
|
||
/* By default, we set the compatibility level to the oldest version we are officially supporting. Note that there | ||
* are differences in behaviour, e.g. with implicit conversions of date and time values. See | ||
* https://docs.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql for details. | ||
*/ | ||
ALTER DATABASE [lbcat] SET COMPATIBILITY_LEVEL = 100 | ||
GO | ||
|
||
USE [lbcat] | ||
GO | ||
ALTER DATABASE [lbcat] MODIFY FILEGROUP [PRIMARY] DEFAULT | ||
GO | ||
ALTER DATABASE [lbcat] ADD FILEGROUP [liquibase2] | ||
GO | ||
|
||
DECLARE @dataPath varchar(256); | ||
DECLARE @logPath varchar(256); | ||
SET @dataPath=(SELECT CAST(serverproperty('InstanceDefaultDataPath') AS varchar(256))); | ||
SET @logPath=(SELECT CAST(serverproperty('InstanceDefaultLogPath') AS varchar(256))); | ||
|
||
DECLARE @createSql varchar(2000); | ||
SET @createSql = (SELECT 'ALTER DATABASE [lbcat] ADD FILE ( NAME = N''liquibase2'', FILENAME = N''' + @dataPath + 'liquibase2.ndf'' , SIZE = 8192KB , FILEGROWTH = 65536KB ) TO FILEGROUP [liquibase2]'); | ||
EXECUTE(@createSql); | ||
GO | ||
|
||
|
||
CREATE SCHEMA [lbcat2] AUTHORIZATION [dbo] | ||
GO |
Binary file not shown.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.