diff options
| author | 2018-08-07 15:09:08 +0100 | |
|---|---|---|
| committer | 2018-08-07 15:09:16 +0100 | |
| commit | af54db6c136138c66cf5ca72419989525a0baa5c (patch) | |
| tree | 8519aeab8d45277c51797c7dc23aacf3b56ed1bb /pysite/migrations/tables/users | |
| parent | A wizard is never late, nor is he early. (diff) | |
Initial project layout for django
Diffstat (limited to 'pysite/migrations/tables/users')
| -rw-r--r-- | pysite/migrations/tables/users/__init__.py | 0 | ||||
| -rw-r--r-- | pysite/migrations/tables/users/v1.py | 11 | ||||
| -rw-r--r-- | pysite/migrations/tables/users/v2.py | 11 |
3 files changed, 0 insertions, 22 deletions
diff --git a/pysite/migrations/tables/users/__init__.py b/pysite/migrations/tables/users/__init__.py deleted file mode 100644 index e69de29b..00000000 --- a/pysite/migrations/tables/users/__init__.py +++ /dev/null diff --git a/pysite/migrations/tables/users/v1.py b/pysite/migrations/tables/users/v1.py deleted file mode 100644 index 9ba70142..00000000 --- a/pysite/migrations/tables/users/v1.py +++ /dev/null @@ -1,11 +0,0 @@ -def run(db, table, table_obj): - """ - Remove stored email addresses from every user document - """ - - for document in db.get_all(table): - if "email" in document: - del document["email"] - - db.insert(table, document, conflict="update", durability="soft") - db.sync(table) diff --git a/pysite/migrations/tables/users/v2.py b/pysite/migrations/tables/users/v2.py deleted file mode 100644 index 820d0d6d..00000000 --- a/pysite/migrations/tables/users/v2.py +++ /dev/null @@ -1,11 +0,0 @@ -def run(db, table, table_obj): - """ - Remove stored email addresses from every user document - "apparently `update` doesn't update" update - """ - - for document in db.get_all(table): - if "email" in document: - del document["email"] - - db.insert(table, document, conflict="replace", durability="soft") - db.sync(table) |