Tom Hacohen
e4361d2364
Patch old DB migration in order to fix mysql issues.
...
Really fix #69 .
2021-01-27 18:48:56 +02:00
Tom Hacohen
0ac41e77e8
Fix DB errors when using MySQL/MariaDB.
...
Fixes #69 .
2021-01-27 14:38:10 +02:00
Tom Hacohen
baa42d040d
Collection: also save the collection UID on the model itself.
...
This enables us to have db-constraints for making sure that UIDs are
unique, as well as being more efficient for lookups (which are very
common).
The UID should always be the same as the main_item.uid, though that's
easily enforced as neither of them is allowed to change.
2020-12-14 13:33:11 +02:00
Tom Hacohen
c790b5f489
Reformat some files using black.
2020-12-01 12:45:38 +02:00
Tal Leibman
d8e5c37db1
Use black for code formatting and format the code
...
Merge #65
2020-11-14 17:04:41 +02:00
Tom Hacohen
5d8a92f000
Collections: add support for collection types.
...
We also added the field for invitations, as it's needed for collections
to work.
2020-10-13 18:39:18 +03:00
Tom Hacohen
18b3f45b79
Collection main_item: make a OneToOneField intsead of just a foreign key.
2020-09-22 11:33:17 +03:00
Tom Hacohen
d90931fbe5
Make access level an int instead of a string.
...
We started with a string because we thought it could maybe provide more
flexibility, though really, an int makes much more sense, especially on
all the platforms etebase runs nowadays.
2020-09-07 11:02:53 +03:00
Tom Hacohen
393b85d3ca
Chunks: move to reside under the collection.
2020-08-04 17:39:33 +03:00
Tom Hacohen
1d5baece1e
Chunk uploading: implement properly using a custom Parser.
2020-08-04 14:15:25 +03:00
Tom Hacohen
f69c3a327c
Revert "django_etebase: make migration generic and not depend on myauth."
...
This reverts commit 925dcac0fb99204e3373251e12f8496721879361.
2020-07-05 13:15:42 +03:00
Tom Hacohen
4948e91c65
django_etebase: make migration generic and not depend on myauth.
2020-06-28 16:52:14 +03:00
Tom Hacohen
785e4fae97
Merge the uidvalidator with the base64url validator and set a min length.
2020-06-26 12:14:06 +03:00
Tom Hacohen
c00cf50163
Revision: remove salt field.
...
It's not really needed. More information in the respective change
in the js client.
2020-06-26 11:21:53 +03:00
Tom Hacohen
2b52eec41f
Allow chunk UIDs to be longer.
2020-06-26 11:05:01 +03:00
Tom Hacohen
1bed39af9d
Collection/item uid: allow base64-url not just base62.
2020-06-24 10:48:47 +03:00
Tom Hacohen
291ebaa3f7
Items must have a uid now (not null).
...
This is due to the previous change.
2020-06-23 13:05:34 +03:00
Tom Hacohen
267d749c45
Collection: change collections to be an extension of items
...
Each collection now has an item and the item's UID is the collections
UID. This lets us manipulate collections just like items, and as part of
transactions. This is significant because it lets us change them as part
of transactions!
2020-06-23 13:03:46 +03:00
Tom Hacohen
d1017aac76
Rename django_etesync to django_etebase.
2020-06-16 17:14:53 +03:00