-
-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#551 Allows user passwords with accolade
- Loading branch information
Arnaud Boussaer
authored and
Arnaud Boussaer
committed
Mar 22, 2024
1 parent
ceaa6a5
commit bf7fe40
Showing
4 changed files
with
41 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
test/EntityFrameworkCore.Generator.Core.Tests/Scripts/Script003.Tracker.User.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
IF NOT EXISTS | ||
(SELECT name | ||
FROM master.sys.sql_logins | ||
WHERE name = 'testuser') | ||
BEGIN | ||
CREATE LOGIN [testuser] WITH PASSWORD = N'rglna{adQP123456'; | ||
END | ||
-- check our db | ||
IF NOT EXISTS | ||
(SELECT name | ||
FROM sys.database_principals | ||
WHERE name = 'testuser') | ||
BEGIN | ||
CREATE USER [testuser] FOR LOGIN [testuser] WITH DEFAULT_SCHEMA = dbo | ||
END | ||
exec sp_addrolemember db_datareader, 'testuser' | ||
exec sp_addrolemember db_datawriter, 'testuser' |