mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
Minor changes to make script idempotent
This commit is contained in:
@@ -64,11 +64,12 @@ AS
|
||||
GO
|
||||
|
||||
-- Create table for storing the machine learning models
|
||||
CREATE TABLE sales_models (
|
||||
model_name varchar(100) NOT NULL PRIMARY KEY,
|
||||
model varbinary(max) NOT NULL,
|
||||
model_native varbinary(max) NOT NULL,
|
||||
created_by nvarchar(300) NOT NULL DEFAULT(SYSTEM_USER),
|
||||
create_time datetime2 NOT NULL DEFAULT(SYSDATETIME())
|
||||
);
|
||||
IF NOT EXISTS(SELECT * FROM sys.tables WHERE name = 'sales_models')
|
||||
CREATE TABLE sales_models (
|
||||
model_name varchar(100) NOT NULL PRIMARY KEY,
|
||||
model varbinary(max) NOT NULL,
|
||||
model_native varbinary(max) NOT NULL,
|
||||
created_by nvarchar(300) NOT NULL DEFAULT(SYSTEM_USER),
|
||||
create_time datetime2 NOT NULL DEFAULT(SYSDATETIME())
|
||||
);
|
||||
GO
|
||||
|
||||
Reference in New Issue
Block a user