]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0024.data.default_billing_type.sql
Adds a default 'non-system' billing type if there are no other such billing types...
[Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0024.data.default_billing_type.sql
1 BEGIN;
2
3 INSERT INTO config.upgrade_log (version) VALUES ('0024');
4
5 -- This only gets inserted if there are no other id > 100 billing types
6 INSERT INTO config.billing_type (name, owner) SELECT DISTINCT oils_i18n_gettext('Misc', 'Misc', 'cbt', 'name'), 1 FROM config.billing_type_id_seq WHERE last_value < 101;
7
8 COMMIT;