hunk.code_window: 	"github.com/mattermost/mattermost-server/v6/model"
   	"github.com/mattermost/mattermost-server/v6/shared/i18n"
   	"github.com/mattermost/mattermost-server/v6/utils"
   )
   func initDBCommandContextCobra(command *cobra.Command, readOnlyConfigStore bool) (*app.App, error) {
   	a, err := initDBCommandContext(getConfigDSN(command, config.GetEnvironment()), readOnlyConfigStore)
   	if err != nil {
   		// Returning an error just prints the usage message, so actually panic
   		panic(err)
   	}
  
hunk.labels: keep keep keep keep keep replace replace keep keep keep keep
hunk.after_edit: func initDBCommandContextCobra(command *cobra.Command, readOnlyConfigStore bool, options ...app.Option) (*app.App, error) {
   	a, err := initDBCommandContext(getConfigDSN(command, config.GetEnvironment()), readOnlyConfigStore, options...)
  
hunk.file_path: cmd/mattermost/commands/init.go
hunk.type: replace
file: CREATE INDEX IF NOT EXISTS idx_channelmembers_user_id ON channelmembers(userid);
  
  DROP INDEX IF EXISTS idx_channelmembers_channel_id_scheme_guest_user_id;
  DROP INDEX IF EXISTS idx_channelmembers_user_id_channel_id_last_viewed_at;
  
  ALTER TABLE channelmembers ALTER COLUMN notifyprops TYPE varchar(2000);
  