Page MenuHomePhabricator

schema updates needed
Closed, ResolvedPublic

Description

alter table channel add column autolink int(1) not null default 0;
alter table channel add column silence int(1) not null default 0;
alter table channel add column basewiki int(11) not null default 1;
alter table channel add column hedgehog int(1) not null default 0;

update channel set hedgehog = 1
where channel_id in (
  select cc_channel
  from channelconfig
    inner join configuration on cc_config = configuration_id
  where configuration_name = 'hedgehog'
        and cc_value <> configuration_value
);

update channel set silence = 1
where channel_id in (
  select cc_channel
  from channelconfig
    inner join configuration on cc_config = configuration_id
  where configuration_name = 'silence'
        and cc_value <> configuration_value
);

update channel set autolink = 1
where channel_id in (
  select cc_channel
  from channelconfig
    inner join configuration on cc_config = configuration_id
  where configuration_name = 'autolink'
        and cc_value <> configuration_value
);

Event Timeline

stwalkerster created this task.
stwalkerster moved this task from Backlog to Other project tasks on the Helpmebot board.
stwalkerster raised the priority of this task from Normal to High.
stwalkerster added a project: Restricted Project.

I think this might have been done as part of the deployment - need to check though