--- /dev/null
+begin;
+
+-- add student card settings
+INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
+VALUES (
+ 'eg.grid.admin.server.student_card.district', 'gui', 'object',
+ oils_i18n_gettext(
+ 'eg.grid.admin.server.student_card.district',
+ 'Grid Config: Student Card District',
+ 'cwst', 'label')
+);
+
+INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
+VALUES (
+ 'eg.grid.admin.server.student_card.school', 'gui', 'object',
+ oils_i18n_gettext(
+ 'eg.grid.admin.server.student_card.school',
+ 'Grid Config: Student Card School',
+ 'cwst', 'label')
+);
+
+INSERT INTO config.org_unit_setting_type
+ (name, grp, label, description, datatype, fm_class) VALUES
+ ('circ.patron.default_student_card_profile', 'circ',
+ oils_i18n_gettext('circ.patron.default_student_card_profile',
+ 'Student Card: Default user permission profile',
+ 'coust', 'label'),
+ oils_i18n_gettext('circ.patron.default_student_card_profile',
+ 'Default user permission profile assigned to new student card accounts',
+ 'coust', 'description'),
+ 'link', 'pgt');
+
+INSERT INTO config.workstation_setting_type (name, grp, datatype, label)
+VALUES (
+ 'eg.acq.picklist.upload.templates','acq','object',
+ oils_i18n_gettext(
+ 'eg.acq.picklist.upload.templates',
+ 'Acq Picklist Uploader Templates',
+ 'cwst','label'
+ )
+);
+
+INSERT INTO permission.perm_list ( id, code, description ) VALUES
+ ( 1101, 'ADMIN_STUDENT_CARDS', oils_i18n_gettext(1101,
+ 'Modify student card settings', 'ppl', 'description'));
+
+commit;
--- /dev/null
+begin;
+
+-- drop now unused columns
+alter table student_card.district drop column ftp_host cascade;
+alter table student_card.district drop column ftp_user cascade;
+alter table student_card.district drop column ftp_pass cascade;
+alter table student_card.district drop column ftp_remote_dir cascade;
+alter table student_card.district drop column ftp_port cascade;
+
+-- add new columns
+alter table student_card.district add column file_dir text;
+alter table student_card.district add column exceptions_dir text;
+alter table student_card.school add column net_access integer not null references config.net_access_level (id) default 1;
+
+select auditor.update_auditors();
+
+commit;