File tree Expand file tree Collapse file tree 1 file changed +34
-1
lines changed
src/ServiceManagement/Sql/Commands.SqlDatabase/Services/Server Expand file tree Collapse file tree 1 file changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -659,6 +659,33 @@ public ServiceObjective[] GetServiceObjectives()
659
659
Name = "P3"
660
660
} ,
661
661
new ServiceObjective ( )
662
+ {
663
+ Context = this ,
664
+ Enabled = true ,
665
+ Id = new Guid ( "afe1eee1-1f12-4e5f-9ad6-2de9c12cb4dc" ) ,
666
+ IsDefault = false ,
667
+ IsSystem = false ,
668
+ Name = "P4"
669
+ } ,
670
+ new ServiceObjective ( )
671
+ {
672
+ Context = this ,
673
+ Enabled = true ,
674
+ Id = new Guid ( "43940481-9191-475a-9dba-6b505615b9aa" ) ,
675
+ IsDefault = false ,
676
+ IsSystem = false ,
677
+ Name = "P6"
678
+ } ,
679
+ new ServiceObjective ( )
680
+ {
681
+ Context = this ,
682
+ Enabled = true ,
683
+ Id = new Guid ( "dd00d544-bbc0-4f61-ba60-cdce0c410288" ) ,
684
+ IsDefault = false ,
685
+ IsSystem = false ,
686
+ Name = "P11"
687
+ } ,
688
+ new ServiceObjective ( )
662
689
{
663
690
Context = this ,
664
691
Enabled = true ,
@@ -837,16 +864,22 @@ private void GetDatabaseProperties(Database db)
837
864
}
838
865
}
839
866
}
867
+
840
868
if ( db . MaxSizeBytes . HasValue )
841
869
{
842
870
db . MaxSizeGB = ( int ) ( db . MaxSizeBytes / ( 1024 * 1024 * 1024 ) ) ;
843
871
}
872
+
844
873
if ( ! string . IsNullOrEmpty ( db . ServiceObjectiveName ) )
845
874
{
846
875
db . ServiceObjective = GetServiceObjective ( db . ServiceObjectiveName ) ;
847
- db . ServiceObjectiveId = db . ServiceObjective . Id ;
876
+ if ( db . ServiceObjective != null )
877
+ {
878
+ db . ServiceObjectiveId = db . ServiceObjective . Id ;
879
+ }
848
880
}
849
881
882
+
850
883
builder [ "Database" ] = null ;
851
884
}
852
885
You can’t perform that action at this time.
0 commit comments