mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
Merge pull request #406 from incubateur-territoires/column-description
feat: Add a description to a grist table column
This commit is contained in:
@@ -1188,3 +1188,11 @@ def migration35(tdset):
|
||||
))
|
||||
|
||||
return tdset.apply_doc_actions(doc_actions)
|
||||
|
||||
|
||||
@migration(schema_version=36)
|
||||
def migration36(tdset):
|
||||
"""
|
||||
Add description to column
|
||||
"""
|
||||
return tdset.apply_doc_actions([add_column('_grist_Tables_column', 'description', 'Text')])
|
||||
|
||||
@@ -15,7 +15,7 @@ import six
|
||||
|
||||
import actions
|
||||
|
||||
SCHEMA_VERSION = 35
|
||||
SCHEMA_VERSION = 36
|
||||
|
||||
def make_column(col_id, col_type, formula='', isFormula=False):
|
||||
return {
|
||||
@@ -70,6 +70,7 @@ def schema_create_actions():
|
||||
make_column("isFormula", "Bool"),
|
||||
make_column("formula", "Text"),
|
||||
make_column("label", "Text"),
|
||||
make_column("description", "Text"),
|
||||
|
||||
# Normally a change to label changes colId as well, unless untieColIdFromLabel is True.
|
||||
# (We intentionally pick a variable whose default value is false.)
|
||||
|
||||
Reference in New Issue
Block a user