Skip to content

Commit bd78da9

Browse files
committed
Update templatePersistentStagingGenerateTables.Handlebars
1 parent bbe9ec9 commit bd78da9

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed
Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{#each dataObjectMappings}}
22
--
3-
-- Staging Area table creation statement for {{targetDataObject.name}}
3+
-- Persistent Staging Area table creation statement for {{targetDataObject.name}}
44
-- Generated at {{now}}
55
--
66

@@ -9,16 +9,8 @@ DROP TABLE [{{targetDataObject.name}}]
99

1010
CREATE TABLE [{{targetDataObject.dataObjectConnection.extensions.0.value}}].[{{targetDataObject.dataObjectConnection.extensions.1.value}}].[{{targetDataObject.name}}]
1111
(
12-
[{{../metadataConfiguration.etlProcessAttribute}}] [int] NOT NULL,
13-
[{{../metadataConfiguration.loadDateTimeAttribute}}] [datetime2](7) NOT NULL,
14-
[{{../metadataConfiguration.eventDateTimeAttribute}}] [datetime2](7) NOT NULL,
15-
[{{../metadataConfiguration.recordSourceAttribute}}] [nvarchar](100) NOT NULL,
16-
[{{../metadataConfiguration.sourceRowIdAttribute}}] int NOT NULL,
17-
[{{../metadataConfiguration.changeDataCaptureAttribute}}] [nvarchar](100) NOT NULL,
18-
[{{../metadataConfiguration.recordChecksumAttribute}}] binary(16) NOT NULL,
19-
{{#each dataItemMappings}}
20-
[{{sourceDataItems.0.name}}] [varchar](100){{#unless @last}},{{/unless}}
12+
{{#each sourceDataObjects.0.dataItems}}
13+
[{{name}}] [varchar](1000){{#unless @last}},{{/unless}}
2114
{{/each}}
2215
)
23-
24-
{{/each}}
16+
{{/each}}

0 commit comments

Comments
 (0)