From c0499e33a7eb2453c5a8657bf942e4a83e1f1bb2 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 3 May 2016 22:10:54 +0200 Subject: * calendar URLs are unique --- app/python/rcal/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/python/rcal/model.py') diff --git a/app/python/rcal/model.py b/app/python/rcal/model.py index 88672b2..5b16e8b 100644 --- a/app/python/rcal/model.py +++ b/app/python/rcal/model.py @@ -34,7 +34,7 @@ class Calendar(BASE): visible = Column(Boolean, index=True) custom_name = Column(String(255)) custom_image = Column(String(255)) - custom_url = Column(String(255)) + custom_url = Column(String(255), unique=True, nullable=False, index=True) last_updated = Column(TIMESTAMP) _category = Column( -- cgit v1.2.3