Skip to content

Commit a284616

Browse files
format
1 parent 54d16ef commit a284616

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

datajoint/declare.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,7 @@ def _make_attribute_alter(new, old, primary_key):
398398
command=(
399399
"ADD"
400400
if (old_name or new_name) not in old_names
401-
else "MODIFY"
402-
if not old_name
403-
else "CHANGE `%s`" % old_name
401+
else "MODIFY" if not old_name else "CHANGE `%s`" % old_name
404402
),
405403
new_def=new_def,
406404
after="" if after is None else "AFTER `%s`" % after,

0 commit comments

Comments
 (0)