-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #153 from 0GiS0/add-sample-data
Add sample data for dev container environment
- Loading branch information
Showing
5 changed files
with
323 additions
and
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
IF NOT EXISTS(SELECT * FROM sys.databases WHERE name = 'heroes') | ||
BEGIN | ||
CREATE DATABASE heroes; | ||
END | ||
GO | ||
|
||
USE heroes; | ||
GO | ||
|
||
IF NOT EXISTS (SELECT * FROM sys.tables WHERE name = 'Heroes') | ||
BEGIN | ||
CREATE TABLE Heroes ( | ||
Id INT PRIMARY KEY, | ||
Name NVARCHAR(100), | ||
AlterEgo NVARCHAR(100), | ||
Description NVARCHAR(255) | ||
); | ||
END | ||
GO | ||
|
||
INSERT INTO Heroes (Id, Name, AlterEgo, Description) VALUES | ||
(1, 'Batman', 'Bruce Wayne', 'A wealthy American playboy, philanthropist, and owner of Wayne Enterprises.'), | ||
(2, 'Superman', 'Clark Kent', 'A superhero who was born on the planet Krypton and was given the name Kal-El at birth.'), | ||
(3, 'Wonder Woman', 'Diana Prince', 'A demigoddess and warrior princess of the Amazons.'), | ||
(4, 'Flash', 'Barry Allen', 'A superhero with the power of super speed.'), | ||
(5, 'Green Lantern', 'Hal Jordan', 'A test pilot who was chosen to become the first human member of the Green Lantern Corps.'); | ||
GO |
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
Oops, something went wrong.