CC-4460: Differences between upgraded and fresh installed Airtime database

- done
This commit is contained in:
James 2012-09-17 17:56:33 -04:00
parent df476d9cb6
commit 81a015dfac
1 changed files with 5 additions and 1 deletions
install_minimal/upgrades/airtime-2.2.0/data

View File

@ -101,6 +101,7 @@ CREATE TABLE cc_webstream (
creator_id integer NOT NULL,
mtime timestamp(6) without time zone NOT NULL,
utime timestamp(6) without time zone NOT NULL,
lptime timestamp(6) without time zone,
mime character varying(255)
);
@ -113,10 +114,13 @@ CREATE TABLE cc_webstream_metadata (
ALTER TABLE cc_files
DROP COLUMN gunid,
ADD COLUMN replay_gain character varying(16),
ADD COLUMN replay_gain numeric,
ADD COLUMN owner_id integer,
ALTER COLUMN bpm TYPE integer using airtime_to_int(bpm) /* TYPE change - table: cc_files original: character varying(8) new: integer */;
ALTER TABLE cc_files
ADD CONSTRAINT cc_files_owner_fkey FOREIGN KEY (owner_id) REFERENCES cc_subjs(id);
ALTER TABLE cc_playlistcontents
ADD COLUMN block_id integer,
ADD COLUMN stream_id integer,