ALTER TABLE tpinfo RENAME to tpinfo_old;
CREATE TABLE tpinfo 
(
	id			integer primary key,
	sat_id			integer,
	frequency		integer,
	symbol_rate		integer,
	polarization		integer,
	frequency_drift		integer,
	qam			integer,
	network_id		integer,
	org_network_id		integer,
	ts_id			integer,
	modulation		integer,
	fec			integer,
	transmission		integer,
	channel_number		text);
insert into tpinfo(id,sat_id,frequency,symbol_rate,polarization,frequency_drift,qam,network_id,org_network_id,ts_id,modulation,fec,transmission,channel_number)
select id,sat_id,frequency,symbol_rate,polarization,frequency_drift,qam,network_id,org_network_id,ts_id,modulation,fec,transmission,channel_number from tpinfo_old;
DROP TABLE tpinfo_old;
update options set value="R7327" where name="schema_revision";
VACUUM;
.exit
