From 2e88564d21d2cc6755391a0eb81df51310c76dbf Mon Sep 17 00:00:00 2001 From: Tudor Stanciu Date: Thu, 13 Jan 2022 00:48:04 +0200 Subject: [PATCH] 004.Added new RPi machines --- .../Scripts/004.Added new RPi machines.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 src/api/NetworkResurrector.Api.Domain.Data/Scripts/004.Added new RPi machines.sql diff --git a/src/api/NetworkResurrector.Api.Domain.Data/Scripts/004.Added new RPi machines.sql b/src/api/NetworkResurrector.Api.Domain.Data/Scripts/004.Added new RPi machines.sql new file mode 100644 index 0000000..86072ee --- /dev/null +++ b/src/api/NetworkResurrector.Api.Domain.Data/Scripts/004.Added new RPi machines.sql @@ -0,0 +1,13 @@ +if not exists (select top 1 1 from Machine where MachineName = '***REMOVED***') +begin + insert into Machine(MachineName, FullMachineName, MACAddress, IPv4Address, [Description]) + select '***REMOVED***', '***REMOVED***', '***REMOVED***', '***REMOVED***', 'Raspberry Pi 4 Model B/8GB' +end +go + +if not exists (select top 1 1 from Machine where MachineName = '***REMOVED***') +begin + insert into Machine(MachineName, FullMachineName, MACAddress, IPv4Address, [Description]) + select '***REMOVED***', '***REMOVED***', '***REMOVED***', '***REMOVED***', 'Raspberry Pi Zero W' +end +go \ No newline at end of file