create table old_ts2_servers as select * from ts2_servers;

drop table ts2_servers;

CREATE TABLE ts2_servers (
  i_server_id integer primary key,
  s_server_name varchar(40),
  s_server_welcomemessage varchar(80) ,
  i_server_maxusers integer ,
  i_server_udpport integer ,
  s_server_password varchar(80) ,
  b_server_clan_server integer,
  b_server_allow_codec_celp51 integer ,
  b_server_allow_codec_celp63 integer ,
  b_server_allow_codec_gsm148 integer ,
  b_server_allow_codec_gsm164 integer ,
  b_server_allow_codec_celp52 integer ,
  b_server_allow_codec_speex2150 integer ,
  b_server_allow_codec_speex3950 integer ,
  b_server_allow_codec_speex5950 integer ,
  b_server_allow_codec_speex8000 integer ,
  b_server_allow_codec_speex11000 integer ,
  b_server_allow_codec_speex15000 integer ,
  b_server_allow_codec_speex18200 integer ,
  b_server_allow_codec_speex24600 integer ,
  s_server_webposturl varchar(200) ,
  s_server_weblinkurl varchar(200) ,
  b_server_active integer,
  dt_server_created varchar(20),
  s_server_description varchar(100)
);

insert into ts2_servers (
  i_server_id,
  s_server_name,
  s_server_welcomemessage,
  i_server_maxusers,
  i_server_udpport,
  s_server_password,
  b_server_clan_server,
  b_server_allow_codec_celp51,
  b_server_allow_codec_celp63,
  b_server_allow_codec_gsm148,
  b_server_allow_codec_gsm164,
  b_server_allow_codec_celp52,
  b_server_allow_codec_speex2150,
  b_server_allow_codec_speex3950,
  b_server_allow_codec_speex5950,
  b_server_allow_codec_speex8000,
  b_server_allow_codec_speex11000,
  s_server_webposturl,
  s_server_weblinkurl,
  b_server_active,
  dt_server_created,
  s_server_description
) select * from old_ts2_servers;

update ts2_servers set
  b_server_allow_codec_speex15000=1,
  b_server_allow_codec_speex18200=1,
  b_server_allow_codec_speex24600=1;

drop table old_ts2_servers;
  

