added static php-crud-api
This commit is contained in:
13
seatmap-webapi/tests/fixtures/blog_sqlsrv.sql
vendored
13
seatmap-webapi/tests/fixtures/blog_sqlsrv.sql
vendored
@@ -246,7 +246,7 @@ GO
|
||||
|
||||
CREATE VIEW [tag_usage]
|
||||
AS
|
||||
SELECT top 100 PERCENT tags.id as id, name, COUNT_BIG(name) AS [count] FROM tags, post_tags WHERE tags.id = post_tags.tag_id GROUP BY tags.id, name ORDER BY [count] DESC, name
|
||||
SELECT top 100 PERCENT name, COUNT_BIG(name) AS [count] FROM tags, post_tags WHERE tags.id = post_tags.tag_id GROUP BY name ORDER BY [count] DESC, name
|
||||
GO
|
||||
|
||||
DROP SEQUENCE IF EXISTS [products_id_seq]
|
||||
@@ -285,7 +285,6 @@ CREATE TABLE [kunsthåndværk](
|
||||
[Umlauts ä_ö_ü-COUNT] [int] NOT NULL,
|
||||
[user_id] [int] NOT NULL,
|
||||
[invisible] [nvarchar](36),
|
||||
[invisible_id] [nvarchar](36),
|
||||
CONSTRAINT [kunsthåndværk_pkey] PRIMARY KEY CLUSTERED([id] ASC)
|
||||
)
|
||||
GO
|
||||
@@ -373,9 +372,9 @@ GO
|
||||
INSERT [barcodes] ([product_id], [hex], [bin], [ip_address]) VALUES (1, N'00ff01', 0x00ff01, N'127.0.0.1')
|
||||
GO
|
||||
|
||||
INSERT [kunsthåndværk] ([id], [Umlauts ä_ö_ü-COUNT], [user_id], [invisible], [invisible_id]) VALUES ('e42c77c6-06a4-4502-816c-d112c7142e6d', 1, 1, NULL, 'e42c77c6-06a4-4502-816c-d112c7142e6d')
|
||||
INSERT [kunsthåndværk] ([id], [Umlauts ä_ö_ü-COUNT], [user_id], [invisible]) VALUES ('e42c77c6-06a4-4502-816c-d112c7142e6d', 1, 1, NULL)
|
||||
GO
|
||||
INSERT [kunsthåndværk] ([id], [Umlauts ä_ö_ü-COUNT], [user_id], [invisible], [invisible_id]) VALUES ('e31ecfe6-591f-4660-9fbd-1a232083037f', 2, 2, NULL, 'e42c77c6-06a4-4502-816c-d112c7142e6d')
|
||||
INSERT [kunsthåndværk] ([id], [Umlauts ä_ö_ü-COUNT], [user_id], [invisible]) VALUES ('e31ecfe6-591f-4660-9fbd-1a232083037f', 2, 2, NULL)
|
||||
GO
|
||||
|
||||
INSERT [invisibles] ([id]) VALUES ('e42c77c6-06a4-4502-816c-d112c7142e6d')
|
||||
@@ -434,9 +433,3 @@ REFERENCES [users] ([id])
|
||||
GO
|
||||
ALTER TABLE [kunsthåndværk] CHECK CONSTRAINT [kunsthåndværk_user_id_fkey]
|
||||
GO
|
||||
|
||||
ALTER TABLE [kunsthåndværk] WITH CHECK ADD CONSTRAINT [kunsthåndværk_invisible_id_fkey] FOREIGN KEY([invisible_id])
|
||||
REFERENCES [invisibles] ([id])
|
||||
GO
|
||||
ALTER TABLE [kunsthåndværk] CHECK CONSTRAINT [kunsthåndværk_invisible_id_fkey]
|
||||
GO
|
||||
|
||||
Reference in New Issue
Block a user