piccolo 1.26.1__py3-none-any.whl → 1.27.1__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- piccolo/__init__.py +1 -1
- piccolo/apps/migrations/auto/serialisation.py +1 -1
- piccolo/apps/user/piccolo_migrations/2019-11-14T21-52-21.py +5 -10
- piccolo/apps/user/piccolo_migrations/2020-06-11T21-38-55.py +2 -4
- piccolo/apps/user/piccolo_migrations/2021-04-30T16-14-15.py +2 -4
- piccolo/columns/base.py +17 -4
- piccolo/columns/column_types.py +55 -46
- {piccolo-1.26.1.dist-info → piccolo-1.27.1.dist-info}/METADATA +1 -1
- {piccolo-1.26.1.dist-info → piccolo-1.27.1.dist-info}/RECORD +17 -17
- {piccolo-1.26.1.dist-info → piccolo-1.27.1.dist-info}/WHEEL +1 -1
- tests/apps/migrations/auto/test_migration_manager.py +5 -10
- tests/apps/migrations/commands/test_migrations/2020-03-31T20-38-22.py +1 -2
- tests/columns/test_boolean.py +1 -1
- tests/columns/test_primary_key.py +2 -2
- {piccolo-1.26.1.dist-info → piccolo-1.27.1.dist-info}/entry_points.txt +0 -0
- {piccolo-1.26.1.dist-info → piccolo-1.27.1.dist-info}/licenses/LICENSE +0 -0
- {piccolo-1.26.1.dist-info → piccolo-1.27.1.dist-info}/top_level.txt +0 -0
piccolo/__init__.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__VERSION__ = "1.
|
1
|
+
__VERSION__ = "1.27.1"
|
@@ -15,8 +15,7 @@ async def forwards():
|
|
15
15
|
"length": 100,
|
16
16
|
"default": "",
|
17
17
|
"null": False,
|
18
|
-
"
|
19
|
-
"key": False,
|
18
|
+
"primary_key": False,
|
20
19
|
"unique": True,
|
21
20
|
"index": False,
|
22
21
|
},
|
@@ -30,8 +29,7 @@ async def forwards():
|
|
30
29
|
"length": 255,
|
31
30
|
"default": "",
|
32
31
|
"null": False,
|
33
|
-
"
|
34
|
-
"key": False,
|
32
|
+
"primary_key": False,
|
35
33
|
"unique": False,
|
36
34
|
"index": False,
|
37
35
|
},
|
@@ -45,8 +43,7 @@ async def forwards():
|
|
45
43
|
"length": 255,
|
46
44
|
"default": "",
|
47
45
|
"null": False,
|
48
|
-
"
|
49
|
-
"key": False,
|
46
|
+
"primary_key": False,
|
50
47
|
"unique": True,
|
51
48
|
"index": False,
|
52
49
|
},
|
@@ -59,8 +56,7 @@ async def forwards():
|
|
59
56
|
params={
|
60
57
|
"default": False,
|
61
58
|
"null": False,
|
62
|
-
"
|
63
|
-
"key": False,
|
59
|
+
"primary_key": False,
|
64
60
|
"unique": False,
|
65
61
|
"index": False,
|
66
62
|
},
|
@@ -73,8 +69,7 @@ async def forwards():
|
|
73
69
|
params={
|
74
70
|
"default": False,
|
75
71
|
"null": False,
|
76
|
-
"
|
77
|
-
"key": False,
|
72
|
+
"primary_key": False,
|
78
73
|
"unique": False,
|
79
74
|
"index": False,
|
80
75
|
},
|
@@ -15,8 +15,7 @@ async def forwards():
|
|
15
15
|
"length": 255,
|
16
16
|
"default": "",
|
17
17
|
"null": True,
|
18
|
-
"
|
19
|
-
"key": False,
|
18
|
+
"primary_key": False,
|
20
19
|
"unique": False,
|
21
20
|
"index": False,
|
22
21
|
},
|
@@ -31,8 +30,7 @@ async def forwards():
|
|
31
30
|
"length": 255,
|
32
31
|
"default": "",
|
33
32
|
"null": True,
|
34
|
-
"
|
35
|
-
"key": False,
|
33
|
+
"primary_key": False,
|
36
34
|
"unique": False,
|
37
35
|
"index": False,
|
38
36
|
},
|
@@ -18,8 +18,7 @@ async def forwards():
|
|
18
18
|
params={
|
19
19
|
"default": False,
|
20
20
|
"null": False,
|
21
|
-
"
|
22
|
-
"key": False,
|
21
|
+
"primary_key": False,
|
23
22
|
"unique": False,
|
24
23
|
"index": False,
|
25
24
|
"index_method": IndexMethod.btree,
|
@@ -35,8 +34,7 @@ async def forwards():
|
|
35
34
|
params={
|
36
35
|
"default": None,
|
37
36
|
"null": True,
|
38
|
-
"
|
39
|
-
"key": False,
|
37
|
+
"primary_key": False,
|
40
38
|
"unique": False,
|
41
39
|
"index": False,
|
42
40
|
"index_method": IndexMethod.btree,
|
piccolo/columns/base.py
CHANGED
@@ -350,6 +350,20 @@ class ColumnMeta:
|
|
350
350
|
return self.copy()
|
351
351
|
|
352
352
|
|
353
|
+
class ColumnKwargs(t.TypedDict, total=False):
|
354
|
+
null: bool
|
355
|
+
primary_key: bool
|
356
|
+
unique: bool
|
357
|
+
index: bool
|
358
|
+
index_method: IndexMethod
|
359
|
+
required: bool
|
360
|
+
help_text: t.Optional[str]
|
361
|
+
choices: t.Optional[t.Type[Enum]]
|
362
|
+
db_column_name: t.Optional[str]
|
363
|
+
secret: bool
|
364
|
+
auto_update: t.Any
|
365
|
+
|
366
|
+
|
353
367
|
class Column(Selectable):
|
354
368
|
"""
|
355
369
|
All other columns inherit from ``Column``. Don't use it directly.
|
@@ -467,10 +481,9 @@ class Column(Selectable):
|
|
467
481
|
auto_update: t.Any = ...,
|
468
482
|
**kwargs,
|
469
483
|
) -> None:
|
470
|
-
# This is for backwards compatibility - originally
|
471
|
-
#
|
472
|
-
|
473
|
-
if (kwargs.get("primary") is True) and (kwargs.get("key") is True):
|
484
|
+
# This is for backwards compatibility - originally the `primary_key`
|
485
|
+
# argument was called `primary`.
|
486
|
+
if kwargs.get("primary") is True:
|
474
487
|
primary_key = True
|
475
488
|
|
476
489
|
# Used for migrations.
|
piccolo/columns/column_types.py
CHANGED
@@ -35,8 +35,11 @@ from dataclasses import dataclass
|
|
35
35
|
from datetime import date, datetime, time, timedelta
|
36
36
|
from enum import Enum
|
37
37
|
|
38
|
+
from typing_extensions import Unpack
|
39
|
+
|
38
40
|
from piccolo.columns.base import (
|
39
41
|
Column,
|
42
|
+
ColumnKwargs,
|
40
43
|
ForeignKeyMeta,
|
41
44
|
OnDelete,
|
42
45
|
OnUpdate,
|
@@ -317,14 +320,13 @@ class Varchar(Column):
|
|
317
320
|
self,
|
318
321
|
length: t.Optional[int] = 255,
|
319
322
|
default: t.Union[str, Enum, t.Callable[[], str], None] = "",
|
320
|
-
**kwargs,
|
323
|
+
**kwargs: Unpack[ColumnKwargs],
|
321
324
|
) -> None:
|
322
325
|
self._validate_default(default, (str, None))
|
323
326
|
|
324
327
|
self.length = length
|
325
328
|
self.default = default
|
326
|
-
|
327
|
-
super().__init__(**kwargs)
|
329
|
+
super().__init__(length=length, default=default, **kwargs)
|
328
330
|
|
329
331
|
@property
|
330
332
|
def column_type(self):
|
@@ -426,12 +428,11 @@ class Text(Column):
|
|
426
428
|
def __init__(
|
427
429
|
self,
|
428
430
|
default: t.Union[str, Enum, None, t.Callable[[], str]] = "",
|
429
|
-
**kwargs,
|
431
|
+
**kwargs: Unpack[ColumnKwargs],
|
430
432
|
) -> None:
|
431
433
|
self._validate_default(default, (str, None))
|
432
434
|
self.default = default
|
433
|
-
|
434
|
-
super().__init__(**kwargs)
|
435
|
+
super().__init__(default=default, **kwargs)
|
435
436
|
|
436
437
|
###########################################################################
|
437
438
|
# For update queries
|
@@ -490,7 +491,11 @@ class UUID(Column):
|
|
490
491
|
|
491
492
|
value_type = uuid.UUID
|
492
493
|
|
493
|
-
def __init__(
|
494
|
+
def __init__(
|
495
|
+
self,
|
496
|
+
default: UUIDArg = UUID4(),
|
497
|
+
**kwargs: Unpack[ColumnKwargs],
|
498
|
+
) -> None:
|
494
499
|
if default is UUID4:
|
495
500
|
# In case the class is passed in, instead of an instance.
|
496
501
|
default = UUID4()
|
@@ -509,8 +514,7 @@ class UUID(Column):
|
|
509
514
|
) from e
|
510
515
|
|
511
516
|
self.default = default
|
512
|
-
|
513
|
-
super().__init__(**kwargs)
|
517
|
+
super().__init__(default=default, **kwargs)
|
514
518
|
|
515
519
|
###########################################################################
|
516
520
|
# Descriptors
|
@@ -553,12 +557,11 @@ class Integer(Column):
|
|
553
557
|
def __init__(
|
554
558
|
self,
|
555
559
|
default: t.Union[int, Enum, t.Callable[[], int], None] = 0,
|
556
|
-
**kwargs,
|
560
|
+
**kwargs: Unpack[ColumnKwargs],
|
557
561
|
) -> None:
|
558
562
|
self._validate_default(default, (int, None))
|
559
563
|
self.default = default
|
560
|
-
|
561
|
-
super().__init__(**kwargs)
|
564
|
+
super().__init__(default=default, **kwargs)
|
562
565
|
|
563
566
|
###########################################################################
|
564
567
|
# For update queries
|
@@ -833,7 +836,10 @@ class BigSerial(Serial):
|
|
833
836
|
|
834
837
|
|
835
838
|
class PrimaryKey(Serial):
|
836
|
-
def __init__(
|
839
|
+
def __init__(
|
840
|
+
self,
|
841
|
+
**kwargs: Unpack[ColumnKwargs],
|
842
|
+
) -> None:
|
837
843
|
# Set the index to False, as a database should automatically create
|
838
844
|
# an index for a PrimaryKey column.
|
839
845
|
kwargs.update({"primary_key": True, "index": False})
|
@@ -896,7 +902,9 @@ class Timestamp(Column):
|
|
896
902
|
timedelta_delegate = TimedeltaDelegate()
|
897
903
|
|
898
904
|
def __init__(
|
899
|
-
self,
|
905
|
+
self,
|
906
|
+
default: TimestampArg = TimestampNow(),
|
907
|
+
**kwargs: Unpack[ColumnKwargs],
|
900
908
|
) -> None:
|
901
909
|
self._validate_default(default, TimestampArg.__args__) # type: ignore
|
902
910
|
|
@@ -912,8 +920,7 @@ class Timestamp(Column):
|
|
912
920
|
default = TimestampNow()
|
913
921
|
|
914
922
|
self.default = default
|
915
|
-
|
916
|
-
super().__init__(**kwargs)
|
923
|
+
super().__init__(default=default, **kwargs)
|
917
924
|
|
918
925
|
###########################################################################
|
919
926
|
# For update queries
|
@@ -994,7 +1001,9 @@ class Timestamptz(Column):
|
|
994
1001
|
timedelta_delegate = TimedeltaDelegate()
|
995
1002
|
|
996
1003
|
def __init__(
|
997
|
-
self,
|
1004
|
+
self,
|
1005
|
+
default: TimestamptzArg = TimestamptzNow(),
|
1006
|
+
**kwargs: Unpack[ColumnKwargs],
|
998
1007
|
) -> None:
|
999
1008
|
self._validate_default(
|
1000
1009
|
default, TimestamptzArg.__args__ # type: ignore
|
@@ -1007,8 +1016,7 @@ class Timestamptz(Column):
|
|
1007
1016
|
default = TimestamptzNow()
|
1008
1017
|
|
1009
1018
|
self.default = default
|
1010
|
-
|
1011
|
-
super().__init__(**kwargs)
|
1019
|
+
super().__init__(default=default, **kwargs)
|
1012
1020
|
|
1013
1021
|
###########################################################################
|
1014
1022
|
# For update queries
|
@@ -1075,7 +1083,11 @@ class Date(Column):
|
|
1075
1083
|
value_type = date
|
1076
1084
|
timedelta_delegate = TimedeltaDelegate()
|
1077
1085
|
|
1078
|
-
def __init__(
|
1086
|
+
def __init__(
|
1087
|
+
self,
|
1088
|
+
default: DateArg = DateNow(),
|
1089
|
+
**kwargs: Unpack[ColumnKwargs],
|
1090
|
+
) -> None:
|
1079
1091
|
self._validate_default(default, DateArg.__args__) # type: ignore
|
1080
1092
|
|
1081
1093
|
if isinstance(default, date):
|
@@ -1085,8 +1097,7 @@ class Date(Column):
|
|
1085
1097
|
default = DateNow()
|
1086
1098
|
|
1087
1099
|
self.default = default
|
1088
|
-
|
1089
|
-
super().__init__(**kwargs)
|
1100
|
+
super().__init__(default=default, **kwargs)
|
1090
1101
|
|
1091
1102
|
###########################################################################
|
1092
1103
|
# For update queries
|
@@ -1153,15 +1164,18 @@ class Time(Column):
|
|
1153
1164
|
value_type = time
|
1154
1165
|
timedelta_delegate = TimedeltaDelegate()
|
1155
1166
|
|
1156
|
-
def __init__(
|
1167
|
+
def __init__(
|
1168
|
+
self,
|
1169
|
+
default: TimeArg = TimeNow(),
|
1170
|
+
**kwargs: Unpack[ColumnKwargs],
|
1171
|
+
) -> None:
|
1157
1172
|
self._validate_default(default, TimeArg.__args__) # type: ignore
|
1158
1173
|
|
1159
1174
|
if isinstance(default, time):
|
1160
1175
|
default = TimeCustom.from_time(default)
|
1161
1176
|
|
1162
1177
|
self.default = default
|
1163
|
-
|
1164
|
-
super().__init__(**kwargs)
|
1178
|
+
super().__init__(default=default, **kwargs)
|
1165
1179
|
|
1166
1180
|
###########################################################################
|
1167
1181
|
# For update queries
|
@@ -1229,7 +1243,9 @@ class Interval(Column):
|
|
1229
1243
|
timedelta_delegate = TimedeltaDelegate()
|
1230
1244
|
|
1231
1245
|
def __init__(
|
1232
|
-
self,
|
1246
|
+
self,
|
1247
|
+
default: IntervalArg = IntervalCustom(),
|
1248
|
+
**kwargs: Unpack[ColumnKwargs],
|
1233
1249
|
) -> None:
|
1234
1250
|
self._validate_default(default, IntervalArg.__args__) # type: ignore
|
1235
1251
|
|
@@ -1237,8 +1253,7 @@ class Interval(Column):
|
|
1237
1253
|
default = IntervalCustom.from_timedelta(default)
|
1238
1254
|
|
1239
1255
|
self.default = default
|
1240
|
-
|
1241
|
-
super().__init__(**kwargs)
|
1256
|
+
super().__init__(default=default, **kwargs)
|
1242
1257
|
|
1243
1258
|
@property
|
1244
1259
|
def column_type(self):
|
@@ -1319,12 +1334,11 @@ class Boolean(Column):
|
|
1319
1334
|
def __init__(
|
1320
1335
|
self,
|
1321
1336
|
default: t.Union[bool, Enum, t.Callable[[], bool], None] = False,
|
1322
|
-
**kwargs,
|
1337
|
+
**kwargs: Unpack[ColumnKwargs],
|
1323
1338
|
) -> None:
|
1324
1339
|
self._validate_default(default, (bool, None))
|
1325
1340
|
self.default = default
|
1326
|
-
|
1327
|
-
super().__init__(**kwargs)
|
1341
|
+
super().__init__(default=default, **kwargs)
|
1328
1342
|
|
1329
1343
|
def eq(self, value) -> Where:
|
1330
1344
|
"""
|
@@ -1448,7 +1462,7 @@ class Numeric(Column):
|
|
1448
1462
|
default: t.Union[
|
1449
1463
|
decimal.Decimal, Enum, t.Callable[[], decimal.Decimal], None
|
1450
1464
|
] = decimal.Decimal(0.0),
|
1451
|
-
**kwargs,
|
1465
|
+
**kwargs: Unpack[ColumnKwargs],
|
1452
1466
|
) -> None:
|
1453
1467
|
if isinstance(digits, tuple):
|
1454
1468
|
if len(digits) != 2:
|
@@ -1464,8 +1478,7 @@ class Numeric(Column):
|
|
1464
1478
|
|
1465
1479
|
self.default = default
|
1466
1480
|
self.digits = digits
|
1467
|
-
|
1468
|
-
super().__init__(**kwargs)
|
1481
|
+
super().__init__(default=default, digits=digits, **kwargs)
|
1469
1482
|
|
1470
1483
|
###########################################################################
|
1471
1484
|
# Descriptors
|
@@ -1530,12 +1543,11 @@ class Real(Column):
|
|
1530
1543
|
def __init__(
|
1531
1544
|
self,
|
1532
1545
|
default: t.Union[float, Enum, t.Callable[[], float], None] = 0.0,
|
1533
|
-
**kwargs,
|
1546
|
+
**kwargs: Unpack[ColumnKwargs],
|
1534
1547
|
) -> None:
|
1535
1548
|
self._validate_default(default, (float, None))
|
1536
1549
|
self.default = default
|
1537
|
-
|
1538
|
-
super().__init__(**kwargs)
|
1550
|
+
super().__init__(default=default, **kwargs)
|
1539
1551
|
|
1540
1552
|
###########################################################################
|
1541
1553
|
# Descriptors
|
@@ -2302,7 +2314,7 @@ class JSON(Column):
|
|
2302
2314
|
t.Callable[[], t.Union[str, t.List, t.Dict]],
|
2303
2315
|
None,
|
2304
2316
|
] = "{}",
|
2305
|
-
**kwargs,
|
2317
|
+
**kwargs: Unpack[ColumnKwargs],
|
2306
2318
|
) -> None:
|
2307
2319
|
self._validate_default(default, (str, list, dict, None))
|
2308
2320
|
|
@@ -2310,8 +2322,7 @@ class JSON(Column):
|
|
2310
2322
|
default = dump_json(default)
|
2311
2323
|
|
2312
2324
|
self.default = default
|
2313
|
-
|
2314
|
-
super().__init__(**kwargs)
|
2325
|
+
super().__init__(default=default, **kwargs)
|
2315
2326
|
|
2316
2327
|
self.json_operator: t.Optional[str] = None
|
2317
2328
|
|
@@ -2486,7 +2497,7 @@ class Bytea(Column):
|
|
2486
2497
|
t.Callable[[], bytearray],
|
2487
2498
|
None,
|
2488
2499
|
] = b"",
|
2489
|
-
**kwargs,
|
2500
|
+
**kwargs: Unpack[ColumnKwargs],
|
2490
2501
|
) -> None:
|
2491
2502
|
self._validate_default(default, (bytes, bytearray, None))
|
2492
2503
|
|
@@ -2494,8 +2505,7 @@ class Bytea(Column):
|
|
2494
2505
|
default = bytes(default)
|
2495
2506
|
|
2496
2507
|
self.default = default
|
2497
|
-
|
2498
|
-
super().__init__(**kwargs)
|
2508
|
+
super().__init__(default=default, **kwargs)
|
2499
2509
|
|
2500
2510
|
###########################################################################
|
2501
2511
|
# Descriptors
|
@@ -2587,7 +2597,7 @@ class Array(Column):
|
|
2587
2597
|
default: t.Union[
|
2588
2598
|
t.List, Enum, t.Callable[[], t.List], None
|
2589
2599
|
] = ListProxy(),
|
2590
|
-
**kwargs,
|
2600
|
+
**kwargs: Unpack[ColumnKwargs],
|
2591
2601
|
) -> None:
|
2592
2602
|
if isinstance(base_column, ForeignKey):
|
2593
2603
|
raise ValueError("Arrays of ForeignKeys aren't allowed.")
|
@@ -2613,8 +2623,7 @@ class Array(Column):
|
|
2613
2623
|
self.base_column = base_column
|
2614
2624
|
self.default = default
|
2615
2625
|
self.index: t.Optional[int] = None
|
2616
|
-
|
2617
|
-
super().__init__(**kwargs)
|
2626
|
+
super().__init__(default=default, base_column=base_column, **kwargs)
|
2618
2627
|
|
2619
2628
|
@property
|
2620
2629
|
def column_type(self):
|
@@ -1,4 +1,4 @@
|
|
1
|
-
piccolo/__init__.py,sha256=
|
1
|
+
piccolo/__init__.py,sha256=2wo5VLHkLkpHtivu4R8c7gskxhk6_A7ruXKGDnde7Zk,23
|
2
2
|
piccolo/custom_types.py,sha256=7HMQAze-5mieNLfbQ5QgbRQgR2abR7ol0qehv2SqROY,604
|
3
3
|
piccolo/main.py,sha256=1VsFV67FWTUikPTysp64Fmgd9QBVa_9wcwKfwj2UCEA,5117
|
4
4
|
piccolo/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -70,7 +70,7 @@ piccolo/apps/migrations/auto/migration_manager.py,sha256=5M2_01_FsZj6zIGXLEwkyEA
|
|
70
70
|
piccolo/apps/migrations/auto/operations.py,sha256=169IrCLR3FtTRxHsEHNg6dTG45lcEM7Aoyy3SwgX_hU,1329
|
71
71
|
piccolo/apps/migrations/auto/schema_differ.py,sha256=VA1rK-_wNSdyZZgfA3ZOlpVGJCcvLyouKtT9k2YKhiA,26266
|
72
72
|
piccolo/apps/migrations/auto/schema_snapshot.py,sha256=ZqUg4NpChOeoACKF2gkhqsz1BW3wOWFnzJCccq-CNNQ,4719
|
73
|
-
piccolo/apps/migrations/auto/serialisation.py,sha256=
|
73
|
+
piccolo/apps/migrations/auto/serialisation.py,sha256=Jw3WEjT7HF4aLl6-GS6tFIEhItaJWxlw8RIwrL2vxaU,24183
|
74
74
|
piccolo/apps/migrations/auto/serialisation_legacy.py,sha256=Edqx3YL0RGTsTHLNkHRNnXdfX6ut1h65U7UX2cI_BkE,1752
|
75
75
|
piccolo/apps/migrations/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
76
76
|
piccolo/apps/migrations/commands/backwards.py,sha256=sBLotsdbwX11dji4H7YWgbaonluZSKBs6V3zFB3l4SY,6654
|
@@ -116,14 +116,14 @@ piccolo/apps/user/commands/change_password.py,sha256=F7mlhtTUY7uENSK8vds5oibIDJT
|
|
116
116
|
piccolo/apps/user/commands/change_permissions.py,sha256=LScsKJUMJqIi54cZ1SgS9Wb356KB0t7smu94FDXLfVk,1463
|
117
117
|
piccolo/apps/user/commands/create.py,sha256=7qIFM1KVdbKVUjUtNz1e_LDKwzwaJKNSWzWVP9QQqRQ,2273
|
118
118
|
piccolo/apps/user/commands/list.py,sha256=wCq7tggaMWwBhDF1adZNUdkZhcWy71UyNBHlaGggREA,1761
|
119
|
-
piccolo/apps/user/piccolo_migrations/2019-11-14T21-52-21.py,sha256=
|
120
|
-
piccolo/apps/user/piccolo_migrations/2020-06-11T21-38-55.py,sha256=
|
121
|
-
piccolo/apps/user/piccolo_migrations/2021-04-30T16-14-15.py,sha256=
|
119
|
+
piccolo/apps/user/piccolo_migrations/2019-11-14T21-52-21.py,sha256=IPU-9OBkHXNKrUAZN0ANLiXiQ6PCJqGjLJacd0kYimI,2029
|
120
|
+
piccolo/apps/user/piccolo_migrations/2020-06-11T21-38-55.py,sha256=8sKZb05RzWpUYnksZamHIzUh1OR-xSPIjMs7rOxNfg0,938
|
121
|
+
piccolo/apps/user/piccolo_migrations/2021-04-30T16-14-15.py,sha256=Plaj2joEYGXaydY5eRmn_1RsB75ioiTOHxC48tuPyV8,1175
|
122
122
|
piccolo/apps/user/piccolo_migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
123
123
|
piccolo/columns/__init__.py,sha256=OYhO_n9anMiU9nL-K6ATq9FhAtm8RyMpqYQ7fTVbhxI,1120
|
124
|
-
piccolo/columns/base.py,sha256=
|
124
|
+
piccolo/columns/base.py,sha256=l-nzNhgaMH4lkvY7BojvbdOyMME8V5G4MDThGe4NgdA,32699
|
125
125
|
piccolo/columns/choices.py,sha256=-HNQuk9vMmVZIPZ5PMeXGTfr23o4nzKPSAkvcG1k0y8,723
|
126
|
-
piccolo/columns/column_types.py,sha256=
|
126
|
+
piccolo/columns/column_types.py,sha256=7UzDe2kro7cncyUtssNwU35xZ6782vJ-iuAJ9qqbQsM,84920
|
127
127
|
piccolo/columns/combination.py,sha256=NUOxmYcx84JW-2FcoF1XJVp_4R01aTJyl3waPzfZ4Tc,6955
|
128
128
|
piccolo/columns/indexes.py,sha256=NfNok3v_791jgDlN28KmhP9ZCjl6031BXmjxV3ovXJk,372
|
129
129
|
piccolo/columns/m2m.py,sha256=QMeSOnm4DT2cG9U5jC6sOZ6z9DxCWwDyZMSqk0wR2q4,14682
|
@@ -200,7 +200,7 @@ piccolo/utils/sync.py,sha256=irmdTsYtURZNEBmIP6i2v2PyjgE-gK4t6VSxnBZ75Qo,920
|
|
200
200
|
piccolo/utils/warnings.py,sha256=ONrurw3HVCClUuHnpenMjg45dcFesrXqMgG9ifgP4_8,1247
|
201
201
|
piccolo/utils/graphlib/__init__.py,sha256=SUJ5Yh7LiRun3nkBuLUSVmGNHF6fANrxSoYan0mtYB0,200
|
202
202
|
piccolo/utils/graphlib/_graphlib.py,sha256=9FNGDSmTIEAk86FktniCe_J2yXjSE_sRZHDBAJJAUOw,9677
|
203
|
-
piccolo-1.
|
203
|
+
piccolo-1.27.1.dist-info/licenses/LICENSE,sha256=zFIpi-16uIJ420UMIG75NU0JbDBykvrdnXcj5U_EYBI,1059
|
204
204
|
profiling/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
205
205
|
profiling/run_profile.py,sha256=264qsSFu93NTpExePnKQ9GkcN5fiuRBQ72WOSt0ZHck,829
|
206
206
|
tests/apps/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -222,7 +222,7 @@ tests/apps/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
|
|
222
222
|
tests/apps/migrations/test_migration.py,sha256=JmPLtf2BCWX3Yofe0GQe40m8I_yWa_-3vk1lDfFDfIo,308
|
223
223
|
tests/apps/migrations/auto/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
224
224
|
tests/apps/migrations/auto/test_diffable_table.py,sha256=p0cKDkfhmu96-rB9bonOlg5bmfQ7U9S2kRppOt4YxyU,3338
|
225
|
-
tests/apps/migrations/auto/test_migration_manager.py,sha256=
|
225
|
+
tests/apps/migrations/auto/test_migration_manager.py,sha256=j2axKGbUnTRLPqjPdlO01dXbQsltLX-N5Bw0FXHoxMc,37232
|
226
226
|
tests/apps/migrations/auto/test_schema_differ.py,sha256=UdsaZisA02j15wr1bXkXD6Cqu3p0A23NwFQLXsJdQL4,19391
|
227
227
|
tests/apps/migrations/auto/test_schema_snapshot.py,sha256=ZyvGZqn3N3cwd-3S-FME5AJ8buDSHesw7yPIvY6mE5k,6196
|
228
228
|
tests/apps/migrations/auto/test_serialisation.py,sha256=EFkhES1w9h51UCamWrhxs3mf4I718ggeP7Yl5J_UID4,13548
|
@@ -234,7 +234,7 @@ tests/apps/migrations/commands/test_check.py,sha256=hOX_sVk1nfCRfbQ8tJoFEUBFhih9
|
|
234
234
|
tests/apps/migrations/commands/test_clean.py,sha256=lPzLLXhoUyyffY3EQIiyRj-QfP07UVNTha21cEZivfY,1124
|
235
235
|
tests/apps/migrations/commands/test_forwards_backwards.py,sha256=VklO8Af6F_ASYWFmSS829ls-mKdwBgdeGG_FFIaYtng,8133
|
236
236
|
tests/apps/migrations/commands/test_new.py,sha256=dKXOuU6t_6zziHHLvX_JdM_Oiee2Lc7FEuADZsMlNQA,4249
|
237
|
-
tests/apps/migrations/commands/test_migrations/2020-03-31T20-38-22.py,sha256=
|
237
|
+
tests/apps/migrations/commands/test_migrations/2020-03-31T20-38-22.py,sha256=f1LIXij_HWVoAz5XwJSGuUKNTyRX1wx8HDUPvV7cab0,579
|
238
238
|
tests/apps/migrations/commands/test_migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
239
239
|
tests/apps/project/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
240
240
|
tests/apps/project/commands/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -258,7 +258,7 @@ tests/columns/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
258
258
|
tests/columns/test_array.py,sha256=niIkAPRQp49bkpbctaMgpcDai4TMAbM9qkrTGhPFsQY,11627
|
259
259
|
tests/columns/test_base.py,sha256=CTqCNcrqAJTjLXe3MCZgTczrmB3jcVRcOpU4FilpLoQ,3918
|
260
260
|
tests/columns/test_bigint.py,sha256=KzfiItv0cYQZR35V_TL485AitDnOZQfTzC3C2YCLSn4,1058
|
261
|
-
tests/columns/test_boolean.py,sha256=
|
261
|
+
tests/columns/test_boolean.py,sha256=6bsZXyAl_6C6NffDlOYzLL7gSpljaV6JFkDgUABh62w,1626
|
262
262
|
tests/columns/test_bytea.py,sha256=doN8S1eFVU4ntSXIg4IgMSZcbvqW1WJ-AEm3OjKLGkI,1382
|
263
263
|
tests/columns/test_choices.py,sha256=q8TLe7nvGERXyGO_XEryEBR-DuWwFY1jPpscsrXjdXo,4066
|
264
264
|
tests/columns/test_combination.py,sha256=BuBwR7k5X1EkOWraZpjqU6gvtb6ow_k-7N1KQBiW2RA,1681
|
@@ -272,7 +272,7 @@ tests/columns/test_interval.py,sha256=2M18pfoGxLLosEvwTmuC4zQkM6jWwU0Nv2fqViW3xO
|
|
272
272
|
tests/columns/test_json.py,sha256=_cziJvw2uT8e_4u9lKhmU56lgQeE7bEqCXYf6AzfChA,3482
|
273
273
|
tests/columns/test_jsonb.py,sha256=KXPgJTchobzHNss86Gb0CeTDlaa5S3pQ8cM3D06-7J8,8592
|
274
274
|
tests/columns/test_numeric.py,sha256=AkTvdvjSsfRsMM79tx4AskUpsTizGBLMY_tC2OII9U4,751
|
275
|
-
tests/columns/test_primary_key.py,sha256=
|
275
|
+
tests/columns/test_primary_key.py,sha256=jpzk2Clj4S4Z4tSB8s5MtyUE665njkN1HUwjbXEqLDs,4874
|
276
276
|
tests/columns/test_readable.py,sha256=xKVfJuxZcfyncNVKXNryl2WFREX655jwD9DxiLArQiU,758
|
277
277
|
tests/columns/test_real.py,sha256=O_lwiNU4RIHSMY33QuWT0WTvNzV-2ATYYtdbI46E42c,511
|
278
278
|
tests/columns/test_reference.py,sha256=-pDKZl0kjRHz17U-_bldHD4rpg7Ga27lIzXMKOazbWA,2344
|
@@ -381,8 +381,8 @@ tests/utils/test_sql_values.py,sha256=vzxRmy16FfLZPH-sAQexBvsF9MXB8n4smr14qoEOS5
|
|
381
381
|
tests/utils/test_sync.py,sha256=9ytVo56y2vPQePvTeIi9lHIouEhWJbodl1TmzkGFrSo,799
|
382
382
|
tests/utils/test_table_reflection.py,sha256=SIzuat-IpcVj1GCFyOWKShI8YkhdOPPFH7qVrvfyPNE,3794
|
383
383
|
tests/utils/test_warnings.py,sha256=NvSC_cvJ6uZcwAGf1m-hLzETXCqprXELL8zg3TNLVMw,269
|
384
|
-
piccolo-1.
|
385
|
-
piccolo-1.
|
386
|
-
piccolo-1.
|
387
|
-
piccolo-1.
|
388
|
-
piccolo-1.
|
384
|
+
piccolo-1.27.1.dist-info/METADATA,sha256=w6D9mzPKUM9M7vEw_aApMwgVkqQF4R6aKMfQt3BFc3I,5531
|
385
|
+
piccolo-1.27.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
386
|
+
piccolo-1.27.1.dist-info/entry_points.txt,sha256=SJPHET4Fi1bN5F3WqcKkv9SClK3_F1I7m4eQjk6AFh0,46
|
387
|
+
piccolo-1.27.1.dist-info/top_level.txt,sha256=-SR74VGbk43VoPy1HH-mHm97yoGukLK87HE5kdBW6qM,24
|
388
|
+
piccolo-1.27.1.dist-info/RECORD,,
|
@@ -286,8 +286,7 @@ class TestMigrationManager(DBTestCase):
|
|
286
286
|
"length": 100,
|
287
287
|
"default": "",
|
288
288
|
"null": True,
|
289
|
-
"
|
290
|
-
"key": False,
|
289
|
+
"primary_key": False,
|
291
290
|
"unique": True,
|
292
291
|
"index": False,
|
293
292
|
},
|
@@ -355,8 +354,7 @@ class TestMigrationManager(DBTestCase):
|
|
355
354
|
"length": 100,
|
356
355
|
"default": "",
|
357
356
|
"null": True,
|
358
|
-
"
|
359
|
-
"key": False,
|
357
|
+
"primary_key": False,
|
360
358
|
"unique": True,
|
361
359
|
"index": True,
|
362
360
|
},
|
@@ -402,8 +400,7 @@ class TestMigrationManager(DBTestCase):
|
|
402
400
|
"on_update": OnUpdate.cascade,
|
403
401
|
"default": None,
|
404
402
|
"null": True,
|
405
|
-
"
|
406
|
-
"key": False,
|
403
|
+
"primary_key": False,
|
407
404
|
"unique": False,
|
408
405
|
"index": False,
|
409
406
|
},
|
@@ -449,8 +446,7 @@ class TestMigrationManager(DBTestCase):
|
|
449
446
|
"on_update": OnUpdate.cascade,
|
450
447
|
"default": None,
|
451
448
|
"null": True,
|
452
|
-
"
|
453
|
-
"key": False,
|
449
|
+
"primary_key": False,
|
454
450
|
"unique": False,
|
455
451
|
"index": False,
|
456
452
|
},
|
@@ -505,8 +501,7 @@ class TestMigrationManager(DBTestCase):
|
|
505
501
|
"length": 100,
|
506
502
|
"default": "",
|
507
503
|
"null": False,
|
508
|
-
"
|
509
|
-
"key": False,
|
504
|
+
"primary_key": False,
|
510
505
|
"unique": True,
|
511
506
|
"index": False,
|
512
507
|
},
|
tests/columns/test_boolean.py
CHANGED
@@ -75,12 +75,12 @@ class TestPrimaryKeyUUID(TableTest):
|
|
75
75
|
|
76
76
|
|
77
77
|
class Manager(Table):
|
78
|
-
pk = UUID(
|
78
|
+
pk = UUID(primary_key=True)
|
79
79
|
name = Varchar()
|
80
80
|
|
81
81
|
|
82
82
|
class Band(Table):
|
83
|
-
pk = UUID(
|
83
|
+
pk = UUID(primary_key=True)
|
84
84
|
name = Varchar()
|
85
85
|
manager = ForeignKey(Manager)
|
86
86
|
|
File without changes
|
File without changes
|
File without changes
|