From 4029fcf5634bc7702420be05a014d8b13a30700d Mon Sep 17 00:00:00 2001 From: dave Date: Fri, 7 Dec 2007 23:58:51 +0000 Subject: [PATCH] - Add a schools access code report to the database --- db/db.code.version.txt | 2 +- db/db.update.73.sql | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 db/db.update.73.sql diff --git a/db/db.code.version.txt b/db/db.code.version.txt index ea70ce0..d69c74c 100644 --- a/db/db.code.version.txt +++ b/db/db.code.version.txt @@ -1 +1 @@ -72 +73 diff --git a/db/db.update.73.sql b/db/db.update.73.sql new file mode 100644 index 0000000..cfb01d1 --- /dev/null +++ b/db/db.update.73.sql @@ -0,0 +1,16 @@ +INSERT INTO `reports` (`id`, `system_report_id`, `name`, `desc`, `creator`, `type`) VALUES + ('', '36', 'School -- Access Codes', 'List of access codes and registration passwords for all schools in the database.', 'The Grant Brothers', 'school'); +INSERT INTO `reports_items` (`id`, `reports_id`, `type`, `ord`, `field`, `value`, `x`, `y`, `w`, `h`, `lines`, `face`, `align`) VALUES + ('', LAST_INSERT_ID(), 'option', 0, 'type', 'pdf', 0, 0, 0, 0, 0, '', ''), + ('', LAST_INSERT_ID(), 'option', 1, 'group_new_page', 'no', 0, 0, 0, 0, 0, '', ''), + ('', LAST_INSERT_ID(), 'option', 2, 'allow_multiline', 'yes', 0, 0, 0, 0, 0, '', ''), + ('', LAST_INSERT_ID(), 'option', 3, 'label_box', 'no', 0, 0, 0, 0, 0, '', ''), + ('', LAST_INSERT_ID(), 'option', 4, 'label_fairname', 'no', 0, 0, 0, 0, 0, '', ''), + ('', LAST_INSERT_ID(), 'option', 5, 'label_logo', 'no', 0, 0, 0, 0, 0, '', ''), + ('', LAST_INSERT_ID(), 'option', 6, 'stock', 'fullpage', 0, 0, 0, 0, 0, '', ''), + ('', LAST_INSERT_ID(), 'col', 0, 'school', '', 0, 0, 0, 0, 0, '', ' '), + ('', LAST_INSERT_ID(), 'col', 1, 'school_city', '', 0, 0, 0, 0, 0, '', ' '), + ('', LAST_INSERT_ID(), 'col', 2, 'school_accesscode', '', 0, 0, 0, 0, 0, '', ' '), + ('', LAST_INSERT_ID(), 'col', 3, 'school_registration_password', '', 0, 0, 0, 0, 0, '', ' '), + ('', LAST_INSERT_ID(), 'col', 4, 'school_board', '', 0, 0, 0, 0, 0, '', ' '), + ('', LAST_INSERT_ID(), 'sort', 0, 'school', '', 0, 0, 0, 0, 0, '', ' ');