mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-07-29 02:32:33 +08:00
Support for creating database and schema
This commit is contained in:
@ -153,7 +153,7 @@ public class SqlServerSqlBuilder extends DefaultSqlBuilder implements SqlBuilder
|
||||
sqlBuilder.append("\ngo\n");
|
||||
if (StringUtils.isNotBlank(database.getComment())) {
|
||||
sqlBuilder.append("exec [" + database.getName() + "].sys. sp_addextendedproperty 'MS_Description','")
|
||||
.append(database.getComment()).append("'").append("'\ngo\n");
|
||||
.append(database.getComment()).append("'").append("\ngo\n");
|
||||
}
|
||||
return sqlBuilder.toString();
|
||||
}
|
||||
@ -166,7 +166,7 @@ public class SqlServerSqlBuilder extends DefaultSqlBuilder implements SqlBuilder
|
||||
if (StringUtils.isNotBlank(schema.getComment())) {
|
||||
sqlBuilder.append("exec sp_addextendedproperty 'MS_Description','")
|
||||
.append(schema.getComment()).append("'").append(",'SCHEMA'")
|
||||
.append(",'").append(schema.getName()).append("'").append("'\ngo\n");
|
||||
.append(",'").append(schema.getName()).append("'").append("\ngo\n");
|
||||
}
|
||||
return sqlBuilder.toString();
|
||||
}
|
||||
|
Reference in New Issue
Block a user