science-ation/db/db.update.64.sql
dave 311d9475dc - Add a system_report_id field to the reports, and set it to the reports.id
for ids <= 34 (all the reports the system inserts by default)
2007-11-21 21:21:10 +00:00

6 lines
130 B
SQL

ALTER TABLE `reports` ADD `system_report_id` INT NOT NULL AFTER `id` ;
UPDATE reports SET system_report_id = id WHERE id <=34;