This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an attribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<system.web>
<!--
In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file.
Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute.
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
</system.web>
</configuration>

View file

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit https://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<ServerConfig>
<config>
<server>
<dbconnection xdt:Transform="Replace">Data Source=kretalocal;User ID=kreta;Password=Porcica1.;Initial Catalog=Kreta;Connection Timeout=3000;</dbconnection>
</server>
</config>
</ServerConfig>
</configuration>

View file

@ -0,0 +1,25 @@
$solutionDir = Join-Path $psscriptroot "..\..\"
Write-Host "Solution Directory is" $psscriptroot
$migrator = Join-Path $solutionDir "\Kreta.DataAccess.Migrations\bin\Migrate.exe"
$target = Join-Path $solutionDir "\Kreta.DataAccess.Migrations\bin\Kreta.DataAccess.Migrations.dll"
$configuration = Join-Path $solutionDir "KretaWeb\Web.Debug.config"
[xml]$configurationAsXml = Get-Content $configuration
$connectionString = $configurationAsXml.configuration.ServerConfig.config.server.dbconnection.'#text'
if([string]::IsNullOrWhiteSpace($connectionString))
{
$configuration = Join-Path $solutionDir "KretaWeb\Web.config"
[xml]$configurationAsXml = Get-Content $configuration
$connectionString = $configurationAsXml.configuration.ServerConfig.config.server.dbconnection
}
if([string]::IsNullOrWhiteSpace($connectionString))
{
Write-Error "Invalid configuration file!"
return 1;
}
Invoke-Expression (Join-Path $solutionDir "\Kreta.DataAccess.Migrations\bin\Migrate.exe --c '$($connectionString)' --db 'SqlServer2016' --a '$($target)' --timeout 7200 --strip true")

View file

@ -0,0 +1,24 @@
<?xml version="1.0"?>
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<ServerConfig>
<config>
<server>
<dbconnection xdt:Transform="Replace">Data Source=kretalocal;User ID=kreta;Password=Porcica1.;Initial Catalog=Kreta;Connection Timeout=3000;</dbconnection>
<tesztintezmenyazonosito xdt:Transform="Insert">biatorbagyi</tesztintezmenyazonosito>
</server>
</config>
</ServerConfig>
<connectionStrings>
<add name="HangfireConnectionString" connectionString="Data Source=kretalocal;User ID=kreta;Password=Porcica1.;Initial Catalog=Kreta;" xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
<appSettings>
<add key="ReCaptchaPublicKey" value="6LeIxAcTAAAAAJcZVRqyHh71UMIEGNQ_MXjiZKhI" xdt:Locator="Match(key)" xdt:Transform="Replace" />
<add key="ReCaptchaPrivateKey" value="6LeIxAcTAAAAAGG-vFI1TnRWxMZNFuojJ4WifJWe" xdt:Locator="Match(key)" xdt:Transform="Replace" />
</appSettings>
</configuration>