Can I create different SQL script for system version table creation and primary key in SQL Server? When I do it, its throwing an error

> 
> System version table must have primary key defined
> 
> 
> 

For example:

```
CREATE TABLE test
(
    [ID] int IDENTITY(1,1) NOT NULL,
    [name] varchar (1024),
    [SysStart] [datetime2] (7) GENERATED ALWAYS AS ROW START NOT NULL,
    [SysEnd] [datetime2] (7) GENERATED ALWAYS AS ROW END NOT NULL,
    PERIOD FOR SYSTEM_TIME ([SysStart], [SysEnd])
)
WITH (SYSTEM_VERSIONING = ON (HISTORY_TABLE = TESTHISTORY, DATA_CONSISTENCY_CHECK = ON))

ALTER TABLE Test
    ADD CONSTRAINT [PK_Test]
        PRIMARY KEY CLUSTERED (ID) ASC

```