Add v2-rc2 to v2 db migrations
- Bump versions in settings and themes - Convert FAKE build from script to project
This commit is contained in:
parent
fbb202d334
commit
1562699c37
|
@ -1,12 +0,0 @@
|
||||||
{
|
|
||||||
"version": 1,
|
|
||||||
"isRoot": true,
|
|
||||||
"tools": {
|
|
||||||
"fake-cli": {
|
|
||||||
"version": "5.22.0",
|
|
||||||
"commands": [
|
|
||||||
"fake"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,17 +1,11 @@
|
||||||
#r "paket:
|
|
||||||
nuget Fake.DotNet.Cli
|
|
||||||
nuget Fake.IO.FileSystem
|
|
||||||
nuget Fake.IO.Zip
|
|
||||||
nuget Fake.Core.Target //"
|
|
||||||
#load ".fake/build.fsx/intellisense.fsx"
|
|
||||||
open System.IO
|
open System.IO
|
||||||
open Fake.Core
|
open Fake.Core
|
||||||
open Fake.DotNet
|
open Fake.DotNet
|
||||||
open Fake.IO
|
open Fake.IO
|
||||||
open Fake.IO.Globbing.Operators
|
open Fake.IO.Globbing.Operators
|
||||||
open Fake.Core.TargetOperators
|
|
||||||
|
|
||||||
Target.initEnvironment ()
|
let execContext = Context.FakeExecutionContext.Create false "build.fsx" []
|
||||||
|
Context.setExecutionContext (Context.RuntimeContext.Fake execContext)
|
||||||
|
|
||||||
/// The output directory for release ZIPs
|
/// The output directory for release ZIPs
|
||||||
let releasePath = "releases"
|
let releasePath = "releases"
|
||||||
|
@ -105,43 +99,56 @@ Target.create "RemoveThemeArchives" (fun _ ->
|
||||||
|
|
||||||
Target.create "CI" ignore
|
Target.create "CI" ignore
|
||||||
|
|
||||||
"Clean"
|
open Fake.Core.TargetOperators
|
||||||
|
|
||||||
|
let dependencies = [
|
||||||
|
"Clean"
|
||||||
==> "All"
|
==> "All"
|
||||||
|
|
||||||
"Clean"
|
"Clean"
|
||||||
?=> "Build"
|
?=> "Build"
|
||||||
==> "All"
|
==> "All"
|
||||||
|
|
||||||
"Clean"
|
"Clean"
|
||||||
?=> "ZipDefaultTheme"
|
?=> "ZipDefaultTheme"
|
||||||
==> "All"
|
==> "All"
|
||||||
|
|
||||||
"Clean"
|
"Clean"
|
||||||
?=> "ZipAdminTheme"
|
?=> "ZipAdminTheme"
|
||||||
==> "All"
|
==> "All"
|
||||||
|
|
||||||
"Build"
|
"Build"
|
||||||
==> "PublishWindows"
|
==> "PublishWindows"
|
||||||
==> "All"
|
==> "All"
|
||||||
|
|
||||||
"Build"
|
"Build"
|
||||||
==> "PublishLinux"
|
==> "PublishLinux"
|
||||||
==> "All"
|
==> "All"
|
||||||
|
|
||||||
"PublishWindows"
|
"PublishWindows"
|
||||||
==> "PackageWindows"
|
==> "PackageWindows"
|
||||||
==> "All"
|
==> "All"
|
||||||
|
|
||||||
"PublishLinux"
|
"PublishLinux"
|
||||||
==> "PackageLinux"
|
==> "PackageLinux"
|
||||||
==> "All"
|
==> "All"
|
||||||
|
|
||||||
"PackageLinux"
|
"PackageLinux"
|
||||||
==> "RepackageLinux"
|
==> "RepackageLinux"
|
||||||
==> "All"
|
==> "All"
|
||||||
|
|
||||||
"All"
|
"All"
|
||||||
==> "RemoveThemeArchives"
|
==> "RemoveThemeArchives"
|
||||||
==> "CI"
|
==> "CI"
|
||||||
|
]
|
||||||
|
|
||||||
Target.runOrDefault "All"
|
[<EntryPoint>]
|
||||||
|
let main args =
|
||||||
|
try
|
||||||
|
match args with
|
||||||
|
| [| target |] -> Target.runOrDefault target
|
||||||
|
| _ -> Target.runOrDefault "All"
|
||||||
|
0
|
||||||
|
with e ->
|
||||||
|
printfn "%A" e
|
||||||
|
1
|
20
build.fsproj
Normal file
20
build.fsproj
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<OutputType>Exe</OutputType>
|
||||||
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="build.fs" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<PackageReference Include="Fake.Core.Target" Version="5.23.1" />
|
||||||
|
<PackageReference Include="Fake.DotNet.Cli" Version="5.23.1" />
|
||||||
|
<PackageReference Include="Fake.IO.FileSystem" Version="5.23.1" />
|
||||||
|
<PackageReference Include="Fake.IO.Zip" Version="5.23.1" />
|
||||||
|
<PackageReference Include="MSBuild.StructuredLogger" Version="2.1.768" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
227
build.fsx.lock
227
build.fsx.lock
|
@ -1,227 +0,0 @@
|
||||||
STORAGE: NONE
|
|
||||||
RESTRICTION: || (== net6.0) (== netstandard2.0)
|
|
||||||
NUGET
|
|
||||||
remote: https://api.nuget.org/v3/index.json
|
|
||||||
BlackFox.VsWhere (1.1)
|
|
||||||
FSharp.Core (>= 4.2.3)
|
|
||||||
Microsoft.Win32.Registry (>= 4.7)
|
|
||||||
Fake.Core.CommandLineParsing (5.22)
|
|
||||||
FParsec (>= 1.1.1)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
Fake.Core.Context (5.22)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
Fake.Core.Environment (5.22)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
Fake.Core.FakeVar (5.22)
|
|
||||||
Fake.Core.Context (>= 5.22)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
Fake.Core.Process (5.22)
|
|
||||||
Fake.Core.Environment (>= 5.22)
|
|
||||||
Fake.Core.FakeVar (>= 5.22)
|
|
||||||
Fake.Core.String (>= 5.22)
|
|
||||||
Fake.Core.Trace (>= 5.22)
|
|
||||||
Fake.IO.FileSystem (>= 5.22)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
System.Collections.Immutable (>= 5.0)
|
|
||||||
Fake.Core.SemVer (5.22)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
Fake.Core.String (5.22)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
Fake.Core.Target (5.22)
|
|
||||||
Fake.Core.CommandLineParsing (>= 5.22)
|
|
||||||
Fake.Core.Context (>= 5.22)
|
|
||||||
Fake.Core.Environment (>= 5.22)
|
|
||||||
Fake.Core.FakeVar (>= 5.22)
|
|
||||||
Fake.Core.Process (>= 5.22)
|
|
||||||
Fake.Core.String (>= 5.22)
|
|
||||||
Fake.Core.Trace (>= 5.22)
|
|
||||||
FSharp.Control.Reactive (>= 5.0.2)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
Fake.Core.Tasks (5.22)
|
|
||||||
Fake.Core.Trace (>= 5.22)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
Fake.Core.Trace (5.22)
|
|
||||||
Fake.Core.Environment (>= 5.22)
|
|
||||||
Fake.Core.FakeVar (>= 5.22)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
Fake.Core.Xml (5.22)
|
|
||||||
Fake.Core.String (>= 5.22)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
Fake.DotNet.Cli (5.22)
|
|
||||||
Fake.Core.Environment (>= 5.22)
|
|
||||||
Fake.Core.Process (>= 5.22)
|
|
||||||
Fake.Core.String (>= 5.22)
|
|
||||||
Fake.Core.Trace (>= 5.22)
|
|
||||||
Fake.DotNet.MSBuild (>= 5.22)
|
|
||||||
Fake.DotNet.NuGet (>= 5.22)
|
|
||||||
Fake.IO.FileSystem (>= 5.22)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
Mono.Posix.NETStandard (>= 1.0)
|
|
||||||
Newtonsoft.Json (>= 13.0.1)
|
|
||||||
Fake.DotNet.MSBuild (5.22)
|
|
||||||
BlackFox.VsWhere (>= 1.1)
|
|
||||||
Fake.Core.Environment (>= 5.22)
|
|
||||||
Fake.Core.Process (>= 5.22)
|
|
||||||
Fake.Core.String (>= 5.22)
|
|
||||||
Fake.Core.Trace (>= 5.22)
|
|
||||||
Fake.IO.FileSystem (>= 5.22)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
MSBuild.StructuredLogger (>= 2.1.545)
|
|
||||||
Fake.DotNet.NuGet (5.22)
|
|
||||||
Fake.Core.Environment (>= 5.22)
|
|
||||||
Fake.Core.Process (>= 5.22)
|
|
||||||
Fake.Core.SemVer (>= 5.22)
|
|
||||||
Fake.Core.String (>= 5.22)
|
|
||||||
Fake.Core.Tasks (>= 5.22)
|
|
||||||
Fake.Core.Trace (>= 5.22)
|
|
||||||
Fake.Core.Xml (>= 5.22)
|
|
||||||
Fake.IO.FileSystem (>= 5.22)
|
|
||||||
Fake.Net.Http (>= 5.22)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
Newtonsoft.Json (>= 13.0.1)
|
|
||||||
NuGet.Protocol (>= 5.11)
|
|
||||||
Fake.IO.FileSystem (5.22)
|
|
||||||
Fake.Core.String (>= 5.22)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
Fake.IO.Zip (5.22)
|
|
||||||
Fake.Core.String (>= 5.22)
|
|
||||||
Fake.IO.FileSystem (>= 5.22)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
Fake.Net.Http (5.22)
|
|
||||||
Fake.Core.Trace (>= 5.22)
|
|
||||||
FSharp.Core (>= 6.0)
|
|
||||||
FParsec (1.1.1)
|
|
||||||
FSharp.Core (>= 4.3.4)
|
|
||||||
FSharp.Control.Reactive (5.0.5)
|
|
||||||
FSharp.Core (>= 4.7.2)
|
|
||||||
System.Reactive (>= 5.0 < 6.0)
|
|
||||||
FSharp.Core (6.0.5)
|
|
||||||
Microsoft.Build (17.2)
|
|
||||||
Microsoft.Build.Framework (>= 17.2) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= net472)) (&& (== netstandard2.0) (>= net6.0))
|
|
||||||
Microsoft.NET.StringTools (>= 1.0) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= net472)) (&& (== netstandard2.0) (>= net6.0))
|
|
||||||
Microsoft.Win32.Registry (>= 4.3) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= net6.0))
|
|
||||||
System.Collections.Immutable (>= 5.0) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= net472)) (&& (== netstandard2.0) (>= net6.0))
|
|
||||||
System.Configuration.ConfigurationManager (>= 4.7) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= net472)) (&& (== netstandard2.0) (>= net6.0))
|
|
||||||
System.Reflection.Metadata (>= 1.6) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= net6.0))
|
|
||||||
System.Security.Principal.Windows (>= 4.7) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= net6.0))
|
|
||||||
System.Text.Encoding.CodePages (>= 4.0.1) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= net6.0))
|
|
||||||
System.Text.Json (>= 6.0) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= net472)) (&& (== netstandard2.0) (>= net6.0))
|
|
||||||
System.Threading.Tasks.Dataflow (>= 6.0) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= net472)) (&& (== netstandard2.0) (>= net6.0))
|
|
||||||
Microsoft.Build.Framework (17.2)
|
|
||||||
Microsoft.Win32.Registry (>= 4.3)
|
|
||||||
System.Security.Permissions (>= 4.7)
|
|
||||||
Microsoft.Build.Tasks.Core (17.2)
|
|
||||||
Microsoft.Build.Framework (>= 17.2)
|
|
||||||
Microsoft.Build.Utilities.Core (>= 17.2)
|
|
||||||
Microsoft.NET.StringTools (>= 1.0)
|
|
||||||
Microsoft.Win32.Registry (>= 4.3)
|
|
||||||
System.CodeDom (>= 4.4)
|
|
||||||
System.Collections.Immutable (>= 5.0)
|
|
||||||
System.Reflection.Metadata (>= 1.6)
|
|
||||||
System.Resources.Extensions (>= 4.6)
|
|
||||||
System.Security.Cryptography.Pkcs (>= 4.7)
|
|
||||||
System.Security.Cryptography.Xml (>= 4.7)
|
|
||||||
System.Security.Permissions (>= 4.7)
|
|
||||||
System.Threading.Tasks.Dataflow (>= 6.0)
|
|
||||||
Microsoft.Build.Utilities.Core (17.2)
|
|
||||||
Microsoft.Build.Framework (>= 17.2)
|
|
||||||
Microsoft.NET.StringTools (>= 1.0)
|
|
||||||
Microsoft.Win32.Registry (>= 4.3)
|
|
||||||
System.Collections.Immutable (>= 5.0)
|
|
||||||
System.Configuration.ConfigurationManager (>= 4.7)
|
|
||||||
System.Security.Permissions (>= 4.7) - restriction: == netstandard2.0
|
|
||||||
System.Text.Encoding.CodePages (>= 4.0.1) - restriction: == netstandard2.0
|
|
||||||
Microsoft.NET.StringTools (1.0)
|
|
||||||
System.Memory (>= 4.5.4)
|
|
||||||
System.Runtime.CompilerServices.Unsafe (>= 5.0)
|
|
||||||
Microsoft.NETCore.Platforms (6.0.4) - restriction: || (&& (== net6.0) (< netcoreapp3.1)) (&& (== net6.0) (< netstandard1.2)) (&& (== net6.0) (< netstandard1.3)) (&& (== net6.0) (< netstandard1.5)) (== netstandard2.0)
|
|
||||||
Microsoft.NETCore.Targets (5.0) - restriction: || (&& (== net6.0) (< netcoreapp3.1)) (&& (== net6.0) (< netstandard1.2)) (&& (== net6.0) (< netstandard1.3)) (&& (== net6.0) (< netstandard1.5)) (== netstandard2.0)
|
|
||||||
Microsoft.Win32.Registry (5.0)
|
|
||||||
System.Buffers (>= 4.5.1) - restriction: || (&& (== net6.0) (>= monoandroid) (< netstandard1.3)) (&& (== net6.0) (>= monotouch)) (&& (== net6.0) (< netcoreapp2.0)) (&& (== net6.0) (>= xamarinios)) (&& (== net6.0) (>= xamarinmac)) (&& (== net6.0) (>= xamarintvos)) (&& (== net6.0) (>= xamarinwatchos)) (== netstandard2.0)
|
|
||||||
System.Memory (>= 4.5.4) - restriction: || (&& (== net6.0) (< netcoreapp2.0)) (&& (== net6.0) (< netcoreapp2.1)) (&& (== net6.0) (>= uap10.1)) (== netstandard2.0)
|
|
||||||
System.Security.AccessControl (>= 5.0)
|
|
||||||
System.Security.Principal.Windows (>= 5.0)
|
|
||||||
Microsoft.Win32.SystemEvents (6.0.1) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= netcoreapp3.1))
|
|
||||||
Mono.Posix.NETStandard (1.0)
|
|
||||||
MSBuild.StructuredLogger (2.1.669)
|
|
||||||
Microsoft.Build (>= 16.10)
|
|
||||||
Microsoft.Build.Framework (>= 16.10)
|
|
||||||
Microsoft.Build.Tasks.Core (>= 16.10)
|
|
||||||
Microsoft.Build.Utilities.Core (>= 16.10)
|
|
||||||
Newtonsoft.Json (13.0.1)
|
|
||||||
NuGet.Common (6.2.1)
|
|
||||||
NuGet.Frameworks (>= 6.2.1)
|
|
||||||
NuGet.Configuration (6.2.1)
|
|
||||||
NuGet.Common (>= 6.2.1)
|
|
||||||
System.Security.Cryptography.ProtectedData (>= 4.4)
|
|
||||||
NuGet.Frameworks (6.2.1)
|
|
||||||
NuGet.Packaging (6.2.1)
|
|
||||||
Newtonsoft.Json (>= 13.0.1)
|
|
||||||
NuGet.Configuration (>= 6.2.1)
|
|
||||||
NuGet.Versioning (>= 6.2.1)
|
|
||||||
System.Security.Cryptography.Cng (>= 5.0)
|
|
||||||
System.Security.Cryptography.Pkcs (>= 5.0)
|
|
||||||
NuGet.Protocol (6.2.1)
|
|
||||||
NuGet.Packaging (>= 6.2.1)
|
|
||||||
NuGet.Versioning (6.2.1)
|
|
||||||
System.Buffers (4.5.1) - restriction: || (&& (== net6.0) (>= monoandroid) (< netstandard1.3)) (&& (== net6.0) (>= monotouch)) (&& (== net6.0) (< netcoreapp2.0)) (&& (== net6.0) (>= xamarinios)) (&& (== net6.0) (>= xamarinmac)) (&& (== net6.0) (>= xamarintvos)) (&& (== net6.0) (>= xamarinwatchos)) (== netstandard2.0)
|
|
||||||
System.CodeDom (6.0)
|
|
||||||
System.Collections.Immutable (6.0)
|
|
||||||
System.Memory (>= 4.5.4) - restriction: || (&& (== net6.0) (>= net461)) (== netstandard2.0)
|
|
||||||
System.Runtime.CompilerServices.Unsafe (>= 6.0)
|
|
||||||
System.Configuration.ConfigurationManager (6.0)
|
|
||||||
System.Security.Cryptography.ProtectedData (>= 6.0)
|
|
||||||
System.Security.Permissions (>= 6.0)
|
|
||||||
System.Drawing.Common (6.0) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= netcoreapp3.1))
|
|
||||||
Microsoft.Win32.SystemEvents (>= 6.0) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= netcoreapp3.1))
|
|
||||||
System.Formats.Asn1 (6.0)
|
|
||||||
System.Buffers (>= 4.5.1) - restriction: || (&& (== net6.0) (>= net461)) (== netstandard2.0)
|
|
||||||
System.Memory (>= 4.5.4) - restriction: || (&& (== net6.0) (>= net461)) (== netstandard2.0)
|
|
||||||
System.Memory (4.5.5)
|
|
||||||
System.Buffers (>= 4.5.1) - restriction: || (&& (== net6.0) (>= monotouch)) (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netcoreapp2.0)) (&& (== net6.0) (< netstandard1.1)) (&& (== net6.0) (< netstandard2.0)) (&& (== net6.0) (>= xamarinios)) (&& (== net6.0) (>= xamarinmac)) (&& (== net6.0) (>= xamarintvos)) (&& (== net6.0) (>= xamarinwatchos)) (== netstandard2.0)
|
|
||||||
System.Numerics.Vectors (>= 4.4) - restriction: || (&& (== net6.0) (< netcoreapp2.0)) (== netstandard2.0)
|
|
||||||
System.Runtime.CompilerServices.Unsafe (>= 4.5.3) - restriction: || (&& (== net6.0) (>= monotouch)) (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netcoreapp2.0)) (&& (== net6.0) (< netcoreapp2.1)) (&& (== net6.0) (< netstandard1.1)) (&& (== net6.0) (< netstandard2.0)) (&& (== net6.0) (>= uap10.1)) (&& (== net6.0) (>= xamarinios)) (&& (== net6.0) (>= xamarinmac)) (&& (== net6.0) (>= xamarintvos)) (&& (== net6.0) (>= xamarinwatchos)) (== netstandard2.0)
|
|
||||||
System.Numerics.Vectors (4.5) - restriction: || (&& (== net6.0) (>= net461)) (== netstandard2.0)
|
|
||||||
System.Reactive (5.0)
|
|
||||||
System.Runtime.InteropServices.WindowsRuntime (>= 4.3) - restriction: || (&& (== net6.0) (< netcoreapp3.1)) (== netstandard2.0)
|
|
||||||
System.Threading.Tasks.Extensions (>= 4.5.4) - restriction: || (&& (== net6.0) (>= net472)) (&& (== net6.0) (< netcoreapp3.1)) (&& (== net6.0) (>= uap10.1)) (== netstandard2.0)
|
|
||||||
System.Reflection.Metadata (6.0.1)
|
|
||||||
System.Collections.Immutable (>= 6.0)
|
|
||||||
System.Resources.Extensions (6.0)
|
|
||||||
System.Memory (>= 4.5.4) - restriction: || (&& (== net6.0) (>= net461)) (== netstandard2.0)
|
|
||||||
System.Runtime (4.3.1) - restriction: || (&& (== net6.0) (< netcoreapp3.1)) (== netstandard2.0)
|
|
||||||
Microsoft.NETCore.Platforms (>= 1.1.1)
|
|
||||||
Microsoft.NETCore.Targets (>= 1.1.3)
|
|
||||||
System.Runtime.CompilerServices.Unsafe (6.0)
|
|
||||||
System.Runtime.InteropServices.WindowsRuntime (4.3) - restriction: || (&& (== net6.0) (< netcoreapp3.1)) (== netstandard2.0)
|
|
||||||
System.Runtime (>= 4.3)
|
|
||||||
System.Security.AccessControl (6.0)
|
|
||||||
System.Security.Principal.Windows (>= 5.0) - restriction: || (&& (== net6.0) (>= net461)) (== netstandard2.0)
|
|
||||||
System.Security.Cryptography.Cng (5.0)
|
|
||||||
System.Formats.Asn1 (>= 5.0) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= netcoreapp3.0))
|
|
||||||
System.Security.Cryptography.Pkcs (6.0.1)
|
|
||||||
System.Buffers (>= 4.5.1) - restriction: || (&& (== net6.0) (< netstandard2.1)) (== netstandard2.0)
|
|
||||||
System.Formats.Asn1 (>= 6.0)
|
|
||||||
System.Memory (>= 4.5.4) - restriction: || (&& (== net6.0) (< netstandard2.1)) (== netstandard2.0)
|
|
||||||
System.Security.Cryptography.Cng (>= 5.0) - restriction: || (&& (== net6.0) (< netcoreapp3.1)) (&& (== net6.0) (< netstandard2.1)) (== netstandard2.0)
|
|
||||||
System.Security.Cryptography.ProtectedData (6.0)
|
|
||||||
System.Security.Cryptography.Xml (6.0)
|
|
||||||
System.Memory (>= 4.5.4) - restriction: == netstandard2.0
|
|
||||||
System.Security.AccessControl (>= 6.0)
|
|
||||||
System.Security.Cryptography.Pkcs (>= 6.0)
|
|
||||||
System.Security.Permissions (6.0)
|
|
||||||
System.Security.AccessControl (>= 6.0)
|
|
||||||
System.Windows.Extensions (>= 6.0) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= netcoreapp3.1))
|
|
||||||
System.Security.Principal.Windows (5.0)
|
|
||||||
System.Text.Encoding.CodePages (6.0)
|
|
||||||
System.Runtime.CompilerServices.Unsafe (>= 6.0)
|
|
||||||
System.Text.Encodings.Web (6.0) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= net472)) (&& (== netstandard2.0) (>= net6.0))
|
|
||||||
System.Runtime.CompilerServices.Unsafe (>= 6.0)
|
|
||||||
System.Text.Json (6.0.5) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= net472)) (&& (== netstandard2.0) (>= net6.0))
|
|
||||||
System.Runtime.CompilerServices.Unsafe (>= 6.0)
|
|
||||||
System.Text.Encodings.Web (>= 6.0)
|
|
||||||
System.Threading.Tasks.Dataflow (6.0)
|
|
||||||
System.Threading.Tasks.Extensions (4.5.4) - restriction: || (&& (== net6.0) (>= net472)) (&& (== net6.0) (< netcoreapp3.1)) (&& (== net6.0) (>= uap10.1)) (== netstandard2.0)
|
|
||||||
System.Runtime.CompilerServices.Unsafe (>= 4.5.3) - restriction: || (&& (== net6.0) (>= net461)) (&& (== net6.0) (< netcoreapp2.1)) (&& (== net6.0) (< netstandard1.0)) (&& (== net6.0) (< netstandard2.0)) (&& (== net6.0) (>= wp8)) (== netstandard2.0)
|
|
||||||
System.Windows.Extensions (6.0) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= netcoreapp3.1))
|
|
||||||
System.Drawing.Common (>= 6.0) - restriction: || (== net6.0) (&& (== netstandard2.0) (>= netcoreapp3.1))
|
|
7
fake.sh
7
fake.sh
|
@ -1,7 +0,0 @@
|
||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
set -eu
|
|
||||||
set -o pipefail
|
|
||||||
|
|
||||||
dotnet tool restore
|
|
||||||
dotnet fake "$@"
|
|
|
@ -5,6 +5,5 @@
|
||||||
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
<AssemblyVersion>2.0.0.0</AssemblyVersion>
|
||||||
<FileVersion>2.0.0.0</FileVersion>
|
<FileVersion>2.0.0.0</FileVersion>
|
||||||
<Version>2.0.0</Version>
|
<Version>2.0.0</Version>
|
||||||
<VersionSuffix>rc2</VersionSuffix>
|
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
@ -135,27 +135,37 @@ type PostgresData (source : NpgsqlDataSource, log : ILogger<PostgresData>, ser :
|
||||||
let setDbVersion version =
|
let setDbVersion version =
|
||||||
Custom.nonQuery $"DELETE FROM db_version; INSERT INTO db_version VALUES ('%s{version}')" []
|
Custom.nonQuery $"DELETE FROM db_version; INSERT INTO db_version VALUES ('%s{version}')" []
|
||||||
|
|
||||||
/// Do required data migration between versions
|
/// Migrate from v2-rc2 to v2 (manual migration required)
|
||||||
let migrate version = backgroundTask {
|
let migrateV2Rc2ToV2 () = backgroundTask {
|
||||||
match version with
|
Utils.logMigrationStep log "v2-rc2 to v2" "Requires user action"
|
||||||
| Some "v2-rc2" -> ()
|
|
||||||
| Some "v2" ->
|
|
||||||
printfn "** MANUAL DATABASE UPGRADE REQUIRED **\n"
|
|
||||||
printfn "The data structure for PostgreSQL changed significantly between v2-rc2 and v2."
|
|
||||||
printfn "To migrate your data:"
|
|
||||||
printfn " - Using a v2-rc2 executable, back up each web log"
|
|
||||||
printfn " - Drop all tables from the database"
|
|
||||||
printfn " - Using this executable, restore each backup"
|
|
||||||
|
|
||||||
let! webLogs =
|
let! webLogs =
|
||||||
Configuration.dataSource ()
|
Configuration.dataSource ()
|
||||||
|> Sql.fromDataSource
|
|> Sql.fromDataSource
|
||||||
|> Sql.query $"SELECT url_base FROM {Table.WebLog}"
|
|> Sql.query $"SELECT url_base, slug FROM {Table.WebLog}"
|
||||||
|> Sql.executeAsync (fun row -> row.string "url_base")
|
|> Sql.executeAsync (fun row -> row.string "url_base", row.string "slug")
|
||||||
|
|
||||||
printfn "\nCommands to back up all web logs:"
|
[ "** MANUAL DATABASE UPGRADE REQUIRED **"; ""
|
||||||
webLogs |> List.iter (printfn "myWebLog backup %s")
|
"The data structure for PostgreSQL changed significantly between v2-rc2 and v2."
|
||||||
|
"To migrate your data:"
|
||||||
|
" - Use a v2-rc2 executable to back up each web log"
|
||||||
|
" - Drop all tables from the database"
|
||||||
|
" - Use this executable to restore each backup"; ""
|
||||||
|
"Commands to back up all web logs:"
|
||||||
|
yield! webLogs |> List.map (fun (url, slug) -> sprintf "./myWebLog backup %s v2-rc2.%s.json" url slug)
|
||||||
|
]
|
||||||
|
|> String.concat "\n"
|
||||||
|
|> log.LogWarning
|
||||||
|
|
||||||
|
log.LogCritical "myWebLog will now exit"
|
||||||
exit 1
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
/// Do required data migration between versions
|
||||||
|
let migrate version = backgroundTask {
|
||||||
|
match version with
|
||||||
|
| Some "v2" -> ()
|
||||||
|
| Some "v2-rc2" -> do! migrateV2Rc2ToV2 ()
|
||||||
// Future versions will be inserted here
|
// Future versions will be inserted here
|
||||||
| Some _
|
| Some _
|
||||||
| None ->
|
| None ->
|
||||||
|
|
|
@ -215,10 +215,17 @@ type RethinkDbData (conn : Net.IConnection, config : DataConfig, log : ILogger<R
|
||||||
do! setDbVersion "v2-rc2"
|
do! setDbVersion "v2-rc2"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Migrate from v2-rc2 to v2
|
||||||
|
let migrateV2Rc2ToV2 () = backgroundTask {
|
||||||
|
Utils.logMigrationStep log "v2-rc2 to v2" "Setting database version; no migration required"
|
||||||
|
do! setDbVersion "v2"
|
||||||
|
}
|
||||||
|
|
||||||
/// Migrate data between versions
|
/// Migrate data between versions
|
||||||
let migrate version = backgroundTask {
|
let migrate version = backgroundTask {
|
||||||
match version with
|
match version with
|
||||||
| Some v when v = "v2-rc2" -> ()
|
| Some v when v = "v2" -> ()
|
||||||
|
| Some v when v = "v2-rc2" -> do! migrateV2Rc2ToV2 ()
|
||||||
| Some v when v = "v2-rc1" -> do! migrateV2Rc1ToV2Rc2 ()
|
| Some v when v = "v2-rc1" -> do! migrateV2Rc1ToV2Rc2 ()
|
||||||
| Some _
|
| Some _
|
||||||
| None ->
|
| None ->
|
||||||
|
|
|
@ -529,11 +529,18 @@ type SQLiteData (conn : SqliteConnection, log : ILogger<SQLiteData>, ser : JsonS
|
||||||
do! setDbVersion "v2-rc2"
|
do! setDbVersion "v2-rc2"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Migrate from v2-rc2 to v2
|
||||||
|
let migrateV2Rc2ToV2 () = backgroundTask {
|
||||||
|
Utils.logMigrationStep log "v2-rc2 to v2" "Setting database version; no migration required"
|
||||||
|
do! setDbVersion "v2"
|
||||||
|
}
|
||||||
|
|
||||||
/// Migrate data among versions (up only)
|
/// Migrate data among versions (up only)
|
||||||
let migrate version = backgroundTask {
|
let migrate version = backgroundTask {
|
||||||
|
|
||||||
match version with
|
match version with
|
||||||
| Some v when v = "v2-rc2" -> ()
|
| Some v when v = "v2" -> ()
|
||||||
|
| Some v when v = "v2-rc2" -> do! migrateV2Rc2ToV2 ()
|
||||||
| Some v when v = "v2-rc1" -> do! migrateV2Rc1ToV2Rc2 ()
|
| Some v when v = "v2-rc1" -> do! migrateV2Rc1ToV2Rc2 ()
|
||||||
| Some _
|
| Some _
|
||||||
| None ->
|
| None ->
|
||||||
|
|
|
@ -6,7 +6,7 @@ open MyWebLog
|
||||||
open MyWebLog.ViewModels
|
open MyWebLog.ViewModels
|
||||||
|
|
||||||
/// The current database version
|
/// The current database version
|
||||||
let currentDbVersion = "v2-rc2"
|
let currentDbVersion = "v2"
|
||||||
|
|
||||||
/// Create a category hierarchy from the given list of categories
|
/// Create a category hierarchy from the given list of categories
|
||||||
let rec orderByHierarchy (cats : Category list) parentId slugBase parentNames = seq {
|
let rec orderByHierarchy (cats : Category list) parentId slugBase parentNames = seq {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"Generator": "myWebLog 2.0-rc2",
|
"Generator": "myWebLog 2.0",
|
||||||
"Logging": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
"MyWebLog.Handlers": "Information"
|
"MyWebLog.Handlers": "Information"
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
myWebLog Admin
|
myWebLog Admin
|
||||||
2.0.0-rc2
|
2.0.0
|
|
@ -1,2 +1,2 @@
|
||||||
myWebLog Default Theme
|
myWebLog Default Theme
|
||||||
2.0.0-rc2
|
2.0.0
|
Loading…
Reference in New Issue
Block a user