Browse Source

更改字段元数据类型的数据类型

master
zmh 2 years ago
parent
commit
6ff5c9c3ea
  1. 4
      api/app/lib/controllers/latestMetadata/index.js
  2. 2
      scripts/0.0.4/01_alter_t_metadata_database&t_resource_consumption.sql

4
api/app/lib/controllers/latestMetadata/index.js

@ -122,7 +122,7 @@ async function getMetadataDatabases(ctx) {
include: [
{
model: models.User,
attributes: ['id', 'name'],
attributes: ['id', 'name', 'username'],
},
{
model: models.TagDatabase,
@ -202,7 +202,7 @@ async function getMetadataRestapis(ctx) {
include: [
{
model: models.User,
attributes: ['id', 'name'],
attributes: ['id', 'name', 'username'],
},
{
model: models.TagRestapi,

2
scripts/0.0.4/01_alter_t_metadata_database&t_resource_consumption.sql

@ -0,0 +1,2 @@
alter table t_metadata_database alter column type type varchar(255) using type::varchar(255);
alter table t_resource_consumption alter column approve_state type varchar(20) using approve_state::varchar(20);
Loading…
Cancel
Save