Skip to content

Commit 061e37f

Browse files
committed
Update sql server SQL
1 parent f161da5 commit 061e37f

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

tests/fixtures/blog_sqlsrv.sql

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,12 @@ DROP TABLE [kunsthåndværk]
112112
END
113113
GO
114114

115+
IF (OBJECT_ID('invisibles', 'U') IS NOT NULL)
116+
BEGIN
117+
DROP TABLE [kunsthåndværk]
118+
END
119+
GO
120+
115121
CREATE TABLE [categories](
116122
[id] [int] IDENTITY,
117123
[name] [nvarchar](255) NOT NULL,
@@ -212,11 +218,19 @@ GO
212218
CREATE TABLE [kunsthåndværk](
213219
[id] [nvarchar](36),
214220
[Umlauts ä_ö_ü-COUNT] [int] NOT NULL,
221+
[invisible] [nvarchar](36),
215222
CONSTRAINT [PK_kunsthåndværk]
216223
PRIMARY KEY CLUSTERED([id] ASC)
217224
)
218225
GO
219226

227+
CREATE TABLE [invisibles](
228+
[id] [nvarchar](36),
229+
CONSTRAINT [PK_invisibles]
230+
PRIMARY KEY CLUSTERED([id] ASC)
231+
)
232+
GO
233+
220234
INSERT [categories] ([name], [icon]) VALUES (N'announcement', NULL)
221235
GO
222236
INSERT [categories] ([name], [icon]) VALUES (N'article', NULL)
@@ -269,7 +283,10 @@ GO
269283
INSERT [barcodes] ([product_id], [hex], [bin]) VALUES (1, N'00ff01', 0x00ff01)
270284
GO
271285

272-
INSERT [kunsthåndværk] ([id], [Umlauts ä_ö_ü-COUNT]) VALUES ('e42c77c6-06a4-4502-816c-d112c7142e6d', 1)
286+
INSERT [kunsthåndværk] ([id], [Umlauts ä_ö_ü-COUNT], [invisible]) VALUES ('e42c77c6-06a4-4502-816c-d112c7142e6d', 1, NULL)
287+
GO
288+
289+
INSERT [invisibles] ([id]) VALUES ('e42c77c6-06a4-4502-816c-d112c7142e6d')
273290
GO
274291

275292
ALTER TABLE [comments] WITH CHECK ADD CONSTRAINT [FK_comments_posts] FOREIGN KEY([post_id])

0 commit comments

Comments
 (0)