File tree Expand file tree Collapse file tree 5 files changed +9
-9
lines changed
Expand file tree Collapse file tree 5 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 55 fileScopedNamespace : true
66database :
77 provider : SqlServer
8- connectionString : Data Source=(local);Initial Catalog=Tracker ;Integrated Security=True;TrustServerCertificate=True
8+ connectionString : Data Source=(local);Initial Catalog=TrackerGenerator ;Integrated Security=True;TrustServerCertificate=True
99 exclude :
1010 tables :
1111 - exact : ' dbo.SchemaVersions'
Original file line number Diff line number Diff line change 33
44-- Database
55IF NOT EXISTS (SELECT name FROM sys .databases WHERE name = N ' Tracker' )
6- CREATE DATABASE [Tracker ];
6+ CREATE DATABASE [TrackerGenerator ];
77GO
88
9- USE [Tracker ];
9+ USE [TrackerGenerator ];
1010GO
1111
1212IF NOT EXISTS (SELECT * FROM sys .schemas WHERE name = N ' History' )
@@ -92,14 +92,14 @@ CREATE TABLE [dbo].[Task] (
9292 [RowVersion] rowversion NOT NULL ,
9393
9494 [PeriodStart] DATETIME2 GENERATED ALWAYS AS ROW START NOT NULL CONSTRAINT [DF_Location_PeriodStart] DEFAULT (SYSUTCDATETIME ()),
95- [PeriodEnd] DATETIME2 GENERATED ALWAYS AS ROW END NOT NULL CONSTRAINT [DF_Location_PeriodEnd] DEFAULT (' 9999-12-31 23:59:59.9999999' ),
95+ [PeriodEnd] DATETIME2 GENERATED ALWAYS AS ROW END NOT NULL CONSTRAINT [DF_Location_PeriodEnd] DEFAULT (' 9999-12-31 23:59:59.9999999' ),
9696 PERIOD FOR SYSTEM_TIME ([PeriodStart], [PeriodEnd]),
9797
9898 CONSTRAINT [PK_Task] PRIMARY KEY ([Id]),
9999)
100- WITH
100+ WITH
101101(
102- SYSTEM_VERSIONING = ON
102+ SYSTEM_VERSIONING = ON
103103 (
104104 HISTORY_TABLE = [History].[Task],
105105 HISTORY_RETENTION_PERIOD = 1 YEARS,
Original file line number Diff line number Diff line change 11{
22 "ConnectionStrings" : {
3- "Tracker" : " Data Source=(local);Initial Catalog=Tracker ;Integrated Security=True;TrustServerCertificate=True"
3+ "Tracker" : " Data Source=(local);Initial Catalog=TrackerGenerator ;Integrated Security=True;TrustServerCertificate=True"
44 }
55}
Original file line number Diff line number Diff line change 1- dotnet ef dbcontext scaffold " Data Source=(local);Initial Catalog=Tracker ;Integrated Security=True;TrustServerCertificate=True" Microsoft.EntityFrameworkCore.SqlServer --force
1+ dotnet ef dbcontext scaffold " Data Source=(local);Initial Catalog=TrackerGenerator ;Integrated Security=True;TrustServerCertificate=True" Microsoft.EntityFrameworkCore.SqlServer --force
Original file line number Diff line number Diff line change 55 }
66 },
77 "ConnectionStrings" : {
8- "Tracker" : " Data Source=(local);Initial Catalog=Tracker ;Integrated Security=True;TrustServerCertificate=True"
8+ "Tracker" : " Data Source=(local);Initial Catalog=TrackerGenerator ;Integrated Security=True;TrustServerCertificate=True"
99 },
1010 "AllowedHosts" : " *"
1111}
You can’t perform that action at this time.
0 commit comments