chg: [dbschema] Pretty print db_schema and removed Object.comment and

ShadowAttr.comment from the index list
pull/5540/head
mokaddem 2020-01-23 11:48:47 +01:00
parent f88743cb7a
commit 0b1c71e1d9
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
2 changed files with 5 additions and 7 deletions

View File

@ -528,7 +528,7 @@ class AdminShell extends AppShell
'db_version' => $dbVersion
);
$file = new File(ROOT . DS . 'db_schema.json', true);
$file->write(json_encode($data));
$file->write(json_encode($data, JSON_PRETTY_PRINT));
$file->close();
echo __("> Database schema dumped on disk") . PHP_EOL;
} else {

View File

@ -5346,8 +5346,8 @@
"attribute_tags": [
"id",
"attribute_id",
"tag_id",
"event_id"
"event_id",
"tag_id"
],
"attributes": [
"id",
@ -5535,8 +5535,7 @@
"distribution",
"sharing_group_id",
"first_seen",
"last_seen",
"comment"
"last_seen"
],
"org_blacklists": [
"id"
@ -5591,8 +5590,7 @@
"type",
"category",
"first_seen",
"last_seen",
"comment"
"last_seen"
],
"sharing_group_orgs": [
"id",