当我管理字段(主页 » 管理 » 结构 » 内容类型 » 文章 » 管理字段)时,更改字段的类型。
在数据库中,字段的权重存储在哪里?
权重在“field_config_instance”表的“data”列中。请注意,数据列存储了一个序列化的数组。例如,这里是我的数据库中一个字段的数据列。我用粗体突出了权重字段。您会注意到每个视图模式也有一个相应的权重,出现在“管理显示”页面上。
a: 6: {
s: 5: "label";
s: 7: "Address";
s: 8: "required";
b: 1;
s: 6: "widget";
a: 4: {
s: 4: "type";
s: 21: "addressfield_standard";
s: 6: * * "weight";
i: -10 * * ;
s: 8: "settings";
a: 2: {
s: 15: "format_handlers";
a: 2: {
i: 0;
s: 7: "address";
i: 1;
s: 12: "name-oneline";
}
s: 19: "available_countries";
a: 0: {}
}
s: 6: "module";
s: 12: "addressfield";
}
s: 7: "display";
a: 3: {
s: 7: "default";
a: 5: {
s: 5: "label";
s: 6: "hidden";
s: 4: "type";
s: 20: "addressfield_default";
s: 6: "weight";
i: -10;
s: 8: "settings";
a: 2: {
s: 19: "use_widget_handlers";
i: 1;
s: 15: "format_handlers";
a: 1: {
i: 0;
s: 7: "address";
}
}
s: 6: "module";
s: 12: "addressfield";
}
s: 8: "customer";
a: 5: {
s: 5: "label";
s: 6: "hidden";
s: 4: "type";
s: 20: "addressfield_default";
s: 6: "weight";
i: -10;
s: 8: "settings";
a: 2: {
s: 19: "use_widget_handlers";
i: 1;
s: 15: "format_handlers";
a: 1: {
i: 0;
s: 7: "address";
}
}
s: 6: "module";
s: 12: "addressfield";
}
s: 13: "administrator";
a: 5: {
s: 5: "label";
s: 6: "hidden";
s: 4: "type";
s: 20: "addressfield_default";
s: 6: "weight";
i: -10;
s: 8: "settings";
a: 2: {
s: 19: "use_widget_handlers";
i: 1;
s: 15: "format_handlers";
a: 1: {
i: 0;
s: 7: "address";
}
}
s: 6: "module";
s: 12: "addressfield";
}
}
s: 8: "settings";
a: 1: {
s: 18: "user_register_form";
b: 0;
}
s: 11: "description";
s: 0: "";
}
尼拉夫·梅塔