diff --git a/gratipay/main.py b/gratipay/main.py index 2a112600a3..bc63412e5a 100644 --- a/gratipay/main.py +++ b/gratipay/main.py @@ -65,7 +65,6 @@ tell_sentry = website.tell_sentry = gratipay.wireup.make_sentry_teller(env) website.db = gratipay.wireup.db(env) website.mailer = gratipay.wireup.mail(env, website.project_root) -gratipay.wireup.settings(website.db) gratipay.wireup.base_url(website, env) gratipay.wireup.secure_cookies(env) gratipay.wireup.billing(env) diff --git a/gratipay/testing/__init__.py b/gratipay/testing/__init__.py index 60507d105f..257f9095f4 100644 --- a/gratipay/testing/__init__.py +++ b/gratipay/testing/__init__.py @@ -116,8 +116,6 @@ def clear_tables(self): tablenames.insert(0, tablename) self.db.run("ALTER SEQUENCE participants_id_seq RESTART WITH 1") - gratipay.wireup.settings(self.db) - def make_elsewhere(self, platform, user_id, user_name, **kw): info = UserInfo( platform=platform diff --git a/gratipay/wireup.py b/gratipay/wireup.py index 1a2e0b5c6d..c93138dfdd 100644 --- a/gratipay/wireup.py +++ b/gratipay/wireup.py @@ -59,12 +59,6 @@ def db(env): return db -def settings(db): - from gratipay.billing.exchanges import MINIMUM_CHARGE - with db.get_cursor() as cursor: - cursor.run('DELETE FROM settings') - cursor.run('INSERT INTO settings VALUES (%s)', (MINIMUM_CHARGE, )) - def mail(env, project_root='.'): Participant._mailer = mandrill.Mandrill(env.mandrill_key) emails = {} diff --git a/sql/branch.sql b/sql/branch.sql index 90d3bad0a4..d1a0104b1c 100644 --- a/sql/branch.sql +++ b/sql/branch.sql @@ -1,5 +1,4 @@ BEGIN; UPDATE payment_instructions SET due = 0 WHERE amount = 0 AND due != 0; UPDATE payment_instructions SET due = floor(9.41/(amount)) * amount WHERE due > 9.41; - CREATE TABLE settings (minimum_charge numeric(35,2) DEFAULT NULL); END;