@@ -112,6 +112,12 @@ DROP TABLE [kunsthåndværk]
112
112
END
113
113
GO
114
114
115
+ IF (OBJECT_ID (' invisibles' , ' U' ) IS NOT NULL )
116
+ BEGIN
117
+ DROP TABLE [kunsthåndværk]
118
+ END
119
+ GO
120
+
115
121
CREATE TABLE [categories](
116
122
[id] [int] IDENTITY ,
117
123
[name] [nvarchar](255 ) NOT NULL ,
212
218
CREATE TABLE [kunsthåndværk](
213
219
[id] [nvarchar](36 ),
214
220
[Umlauts ä_ö_ü-COUNT] [int] NOT NULL ,
221
+ [invisible] [nvarchar](36 ),
215
222
CONSTRAINT [PK_kunsthåndværk]
216
223
PRIMARY KEY CLUSTERED ([id] ASC )
217
224
)
218
225
GO
219
226
227
+ CREATE TABLE [invisibles](
228
+ [id] [nvarchar](36 ),
229
+ CONSTRAINT [PK_invisibles]
230
+ PRIMARY KEY CLUSTERED ([id] ASC )
231
+ )
232
+ GO
233
+
220
234
INSERT [categories] ([name], [icon]) VALUES (N ' announcement' , NULL )
221
235
GO
222
236
INSERT [categories] ([name], [icon]) VALUES (N ' article' , NULL )
269
283
INSERT [barcodes] ([product_id], [hex], [bin]) VALUES (1 , N ' 00ff01' , 0x00ff01)
270
284
GO
271
285
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' )
273
290
GO
274
291
275
292
ALTER TABLE [comments] WITH CHECK ADD CONSTRAINT [FK_comments_posts] FOREIGN KEY ([post_id])
0 commit comments