Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change docid to string #283

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

change docid to string #283

wants to merge 3 commits into from

Conversation

zhaidw
Copy link

@zhaidw zhaidw commented Jan 28, 2021

https://github.com/phachon/mm-wiki/issues/281

表字段修改如下

`
ALTER TABLE mw_document
change COLUMN document_id document_id VARCHAR(50) NOT NULL COMMENT '文档 id';

ALTER TABLE mw_document
change COLUMN parent_id parent_id VARCHAR(50) NOT NULL COMMENT '文档父 id';

ALTER TABLE mw_document
change COLUMN path path VARCHAR(3000) NOT NULL DEFAULT '0' COMMENT '存储根文档到父文档的 document_id 值,逗号分隔';

ALTER TABLE mw_follow
change COLUMN object_id object_id VARCHAR(50) NOT NULL DEFAULT '0' COMMENT '关注对象 id';

`

@phachon
Copy link
Owner

phachon commented Jan 28, 2021

@zhaidw 改成 string 的原因?

@zhaidw zhaidw mentioned this pull request Jan 28, 2021
@zhaidw
Copy link
Author

zhaidw commented Jan 28, 2021

分享出去的文档地址,在别人不知道的其他文档地址情况下,可以切换id尝试,因为id是自增的。
换成系统生成的字符串一般来说不会有这个问题。

见:
issue 218

系统内部使用的id则没有关系

@s1g0day
Copy link

s1g0day commented Dec 23, 2021

师傅,请教下如果文档已经使用很长时间,该怎么修改现有程序

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants