diff --git a/fediseer/classes/instance.py b/fediseer/classes/instance.py index 1acc5b9..1ba0ef6 100644 --- a/fediseer/classes/instance.py +++ b/fediseer/classes/instance.py @@ -101,7 +101,7 @@ class Instance(db.Model): updated = db.Column(db.DateTime, default=datetime.utcnow, nullable=False) oprhan_since = db.Column(db.DateTime, nullable=True) - open_registrations = db.Column(db.Boolean, unique=False, nullable=False, index=True) + open_registrations = db.Column(db.Boolean, unique=False, nullable=True, index=True) email_verify = db.Column(db.Boolean, unique=False, nullable=True, index=True) approval_required = db.Column(db.Boolean, unique=False, nullable=True, index=True) has_captcha = db.Column(db.Boolean, unique=False, nullable=True, index=True) diff --git a/sql_statements/0.18.0.txt b/sql_statements/0.18.0.txt index 409c6bc..deb49bc 100644 --- a/sql_statements/0.18.0.txt +++ b/sql_statements/0.18.0.txt @@ -1 +1,2 @@ -ALTER TYPE reporttype ADD VALUE 'FLAG'; \ No newline at end of file +ALTER TYPE reporttype ADD VALUE 'FLAG'; +ALTER TABLE instances ALTER COLUMN open_registrations DROP NOT NULL; \ No newline at end of file