From 311d9475dc25a5b68089a63ff2817574fa55be23 Mon Sep 17 00:00:00 2001 From: dave Date: Wed, 21 Nov 2007 21:21:10 +0000 Subject: [PATCH] - 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) --- db/db.code.version.txt | 2 +- db/db.update.64.sql | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 db/db.update.64.sql diff --git a/db/db.code.version.txt b/db/db.code.version.txt index 4b9026d8..900731ff 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -63 +64 diff --git a/db/db.update.64.sql b/db/db.update.64.sql new file mode 100644 index 00000000..62810bf8 --- /dev/null +++ b/db/db.update.64.sql @@ -0,0 +1,5 @@ +ALTER TABLE `reports` ADD `system_report_id` INT NOT NULL AFTER `id` ; + +UPDATE reports SET system_report_id = id WHERE id <=34; + +