aboutsummaryrefslogtreecommitdiffstats
path: root/pysite/migrations/tables/wiki/v1.py
diff options
context:
space:
mode:
Diffstat (limited to 'pysite/migrations/tables/wiki/v1.py')
-rw-r--r--pysite/migrations/tables/wiki/v1.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/pysite/migrations/tables/wiki/v1.py b/pysite/migrations/tables/wiki/v1.py
deleted file mode 100644
index 22670342..00000000
--- a/pysite/migrations/tables/wiki/v1.py
+++ /dev/null
@@ -1,11 +0,0 @@
-def run(db, table, table_obj):
- """
- Ensure that there are no wiki articles that don't have titles
- """
-
- for document in db.pluck(table, table_obj.primary_key, "title"):
- if not document.get("title"):
- document["title"] = "No Title"
-
- db.insert(table, document, conflict="update", durability="soft")
- db.sync(table)