ALTER TABLE ldt_utils_content
   ADD COLUMN tags character varying(2048);

ALTER TABLE ldt_utils_content DROP COLUMN videopath;
ALTER TABLE ldt_utils_content DROP COLUMN external_id;

ALTER TABLE ldt_utils_content ADD COLUMN "media_id" integer REFERENCES "ldt_utils_media" ("id") DEFERRABLE INITIALLY DEFERRED;
CREATE INDEX "ldt_utils_content_media_id" ON "ldt_utils_content" ("media_id");
