INSERT INTO config.billing_type (id, name, owner) VALUES
( 9, oils_i18n_gettext(9, 'Notification Fee', 'cbt', 'name'), 1);
-SELECT SETVAL('config.billing_type_id_seq'::TEXT, 100);
+INSERT INTO config.billing_type (id, name, owner) VALUES ( 101, oils_i18n_gettext(101, 'Misc', 'cbt', 'name'), 1);
-INSERT INTO config.billing_type (name, owner) VALUES ( oils_i18n_gettext('Misc', 'Misc', 'cbt', 'name'), 1);
+SELECT SETVAL('config.billing_type_id_seq'::TEXT, 101);
--006.data.permissions.sql:
INSERT INTO permission.perm_list VALUES
INSERT INTO config.upgrade_log (version) VALUES ('0024');
-- This only gets inserted if there are no other id > 100 billing types
-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;
+INSERT INTO config.billing_type (id, name, owner) SELECT DISTINCT 101, oils_i18n_gettext(101, 'Misc', 'cbt', 'name'), 1 FROM config.billing_type_id_seq WHERE last_value < 101;
+SELECT SETVAL('config.billing_type_id_seq'::TEXT, 101);
COMMIT;