hunk.code_window:   background: #000;
     bottom: 0;
     left: 0;
     width: 100vw;
     height: 480px;
     z-index: 1000;
   }
   .mini-kubectl-shell {
  
hunk.labels: keep keep keep keep replace keep keep keep keep
hunk.after_edit:   height: 495px;
  
hunk.file_path: app/kubernetes/components/kubectl-shell/kubectl-shell.css
hunk.type: replace
file: package migrator
  
  import portainer "github.com/portainer/portainer/api"
  
  func (m *Migrator) updateSettingsToDB24() error {
  	legacySettings, err := m.settingsService.Settings()
  	if err != nil {
  		return err
  	}
  
  	legacySettings.AllowHostNamespaceForRegularUsers = true
  	legacySettings.AllowDeviceMappingForRegularUsers = true
  	legacySettings.AllowStackManagementForRegularUsers = true
  
  	return m.settingsService.UpdateSettings(legacySettings)
  }
  
  func (m *Migrator) updateStacksToDB24() error {
  	stacks, err := m.stackService.Stacks()
  	if err != nil {
  		return err
  	}
  
  	for idx := range stacks {
  		stack := &stacks[idx]
  		stack.Status = portainer.StackStatusActive
  		err := m.stackService.UpdateStack(stack.ID, stack)
  		if err != nil {
  			return err
  		}
  	}
  
  	return nil
  }
  