graphql-engine/docker-compose/sqlserver/init.sql
Chris Done 15071a3bc9 Add SQL Server & Citus to hspec test suite harness and a BasicFields test for each
Relates to https://github.com/hasura/graphql-engine/issues/7755

This includes:

1. SQL Server
2. Citus

And removes the persistent-based testing in favor of duplicating the schema setup, data insertion and teardown.

PR-URL: https://github.com/hasura/graphql-engine-mono/pull/3030
Co-authored-by: Abby Sassel <3883855+sassela@users.noreply.github.com>
GitOrigin-RevId: ab03e68436d2ae07a9ddeb5a499ff41e48d0e2d6
2021-12-30 11:01:43 +00:00

18 lines
255 B
Transact-SQL

CREATE DATABASE hasura;
GO
USE hasura;
GO
CREATE SCHEMA hasura;
GO
CREATE LOGIN hasura WITH PASSWORD='Hasura1!', DEFAULT_DATABASE=hasura;
GO
CREATE USER hasura FOR LOGIN hasura WITH DEFAULT_SCHEMA=hasura;
GO
ALTER ROLE db_owner ADD MEMBER hasura;
GO