changed track type id to serial for auto increment
This commit is contained in:
parent
e584f859fe
commit
d681369f01
1 changed files with 1 additions and 2 deletions
|
@ -2,7 +2,7 @@ ALTER TABLE cc_files ADD COLUMN track_type VARCHAR(16);
|
||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS "cc_track_types"
|
CREATE TABLE IF NOT EXISTS "cc_track_types"
|
||||||
(
|
(
|
||||||
"id" integer DEFAULT nextval('cc_track_types_id_seq'::regclass) NOT NULL,
|
"id" serial NOT NULL,
|
||||||
"code" VARCHAR(16) NOT NULL,
|
"code" VARCHAR(16) NOT NULL,
|
||||||
"type_name" VARCHAR(64),
|
"type_name" VARCHAR(64),
|
||||||
"description" VARCHAR(255),
|
"description" VARCHAR(255),
|
||||||
|
@ -24,4 +24,3 @@ INSERT INTO cc_track_types VALUES (10, 'COM', 'Commercial', 'This is used for co
|
||||||
INSERT INTO cc_track_types VALUES (11, 'ITV', 'Interview', 'This is used for radio interviews', true);
|
INSERT INTO cc_track_types VALUES (11, 'ITV', 'Interview', 'This is used for radio interviews', true);
|
||||||
INSERT INTO cc_track_types VALUES (12, 'VTR', 'Voice Tracking', 'Also referred as robojock or taped. Make announcements without actually being in the station.', true);
|
INSERT INTO cc_track_types VALUES (12, 'VTR', 'Voice Tracking', 'Also referred as robojock or taped. Make announcements without actually being in the station.', true);
|
||||||
|
|
||||||
ALTER SEQUENCE cc_track_types_id_seq RESTART WITH 13;
|
|
Loading…
Add table
Add a link
Reference in a new issue