hunk.code_window: 		l.SkuShortName == LicenseShortSkuEnterprise
   }
   func (l *License) HasSharedChannels() bool {
   	if l == nil {
   		return false
  
hunk.labels: keep keep add keep keep keep
hunk.after_edit: func (l *License) HasRemoteClusterService() bool {
   	if l == nil {
   		return false
   	}
   	// If SharedChannels is enabled then RemoteClusterService must be enabled.
   	if l.HasSharedChannels() {
   		return true
   	}
   	return (l.Features != nil && l.Features.RemoteClusterService != nil && *l.Features.RemoteClusterService) ||
   		l.SkuShortName == LicenseShortSkuProfessional ||
   		l.SkuShortName == LicenseShortSkuEnterprise
   }
  
hunk.file_path: model/license.go
hunk.type: add
file: -- Drop any existing TeamId column from 000094_threads_teamid.up.sql
  SET @preparedStatement = (SELECT IF(
      EXISTS(
          SELECT 1 FROM INFORMATION_SCHEMA.STATISTICS
          WHERE table_name = 'Threads'
          AND table_schema = DATABASE()
          AND column_name = 'TeamId'
      ) > 0,
      'ALTER TABLE Threads DROP COLUMN TeamId;',
      'SELECT 1;'
  ));
  
  PREPARE removeColumnIfExists FROM @preparedStatement;
  EXECUTE removeColumnIfExists;
  DEALLOCATE PREPARE removeColumnIfExists;
  
  SET @preparedStatement = (SELECT IF(
      NOT EXISTS(
          SELECT 1 FROM INFORMATION_SCHEMA.COLUMNS
          WHERE table_name = 'Threads'
          AND table_schema = DATABASE()
          AND column_name = 'ThreadTeamId'
      ),
      'ALTER TABLE Threads ADD COLUMN ThreadTeamId varchar(26) DEFAULT NULL;',
      'SELECT 1;'
  ));
  
  PREPARE addColumnIfNotExists FROM @preparedStatement;
  EXECUTE addColumnIfNotExists;
  DEALLOCATE PREPARE addColumnIfNotExists;
  
  UPDATE Threads, Channels
  SET Threads.ThreadTeamId = Channels.TeamId
  WHERE Channels.Id = Threads.ChannelId
  AND Threads.ThreadTeamId IS NULL;
  