Skip to content

Commit f78888f

Browse files
Add serial support and update log table def.
1 parent d690e54 commit f78888f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

datajoint/declare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
EXTERNAL_TABLE_ROOT = '~external'
1717

1818
TYPE_PATTERN = {k: re.compile(v, re.I) for k, v in dict(
19-
INTEGER=r'((tiny|small|medium|big|)int|integer)(\s*\(.+\))?(\s+unsigned)?(\s+auto_increment)?$',
19+
INTEGER=r'(((tiny|small|medium|big|)int|integer)(\s*\(.+\))?(\s+unsigned)?(\s+auto_increment))|serial?$',
2020
DECIMAL=r'(decimal|numeric)(\s*\(.+\))?(\s+unsigned)?$',
2121
FLOAT=r'(double|float|real)(\s*\(.+\))?(\s+unsigned)?$',
2222
STRING=r'(var)?char\s*\(.+\)$',

datajoint/table.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ def __init__(self, arg, database=None):
683683
self.database = database
684684
self._connection = arg
685685
self._definition = """ # event logging table for `{database}`
686-
id : smallint auto_increment
686+
id : serial
687687
---
688688
timestamp = CURRENT_TIMESTAMP(3) : timestamp(3)
689689
version :varchar(12) # datajoint version

0 commit comments

Comments
 (0)