Skip to content

Commit

Permalink
revert back all schema changes
Browse files Browse the repository at this point in the history
test

test

figured it out
  • Loading branch information
amishas157 committed Oct 30, 2024
1 parent f099229 commit 77a1e1c
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 139 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/update_source_data_schema_changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ jobs:
git clone --branch master https://github.com/stellar/stellar-etl-airflow.git repo_master_copy
cp -r repo_master_copy/schemas/ original_schemas/
output=$(python3 scripts/get_source_data_schema_changelog.py)
existing_changelog=$(<changelog/source_data.md)
echo "$output" > changelog/source_data.md
echo "$existing_changelog" >> changelog/source_data.md
if [[ -n "$output" ]]; then
existing_changelog=$(<changelog/source_data.md)
echo "$output" > changelog/source_data.md
echo "$existing_changelog" >> changelog/source_data.md
fi
- name: Commit changes
id: commit_changes
Expand Down
5 changes: 0 additions & 5 deletions schemas/account_signers_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,5 @@
"mode": "NULLABLE",
"name": "ledger_sequence",
"type": "INTEGER"
},
{
"mode": "NULLABLE",
"name": "ledger_sequences",
"type": "INTEGER"
}
]
12 changes: 12 additions & 0 deletions schemas/dimAccounts_schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"mode": "NULLABLE",
"name": "address",
"type": "STRING"
},
{
"mode": "NULLABLE",
"name": "account_id",
"type": "FLOAT"
}
]
10 changes: 0 additions & 10 deletions schemas/dimOffers_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,5 @@
"mode": "NULLABLE",
"name": "horizon_offer_id",
"type": "INTEGER"
},
{
"mode": "NULLABLE",
"name": "new_id",
"type": "INTEGER"
},
{
"mode": "NULLABLE",
"name": "another_new_id",
"type": "INTEGER"
}
]
4 changes: 2 additions & 2 deletions schemas/history_assets_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
{
"mode": "NULLABLE",
"name": "asset_code",
"type": "INTEGER"
"type": "STRING"
},
{
"mode": "NULLABLE",
"name": "asset_issuer",
"type": "INTEGER"
"type": "STRING"
},
{
"mode": "NULLABLE",
Expand Down
10 changes: 10 additions & 0 deletions schemas/history_trades_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,21 @@
"name": "selling_account_address",
"type": "STRING"
},
{
"mode": "NULLABLE",
"name": "selling_asset_code",
"type": "STRING"
},
{
"mode": "NULLABLE",
"name": "selling_asset_issuer",
"type": "STRING"
},
{
"mode": "NULLABLE",
"name": "selling_asset_type",
"type": "STRING"
},
{
"mode": "NULLABLE",
"name": "selling_asset_id",
Expand Down
118 changes: 0 additions & 118 deletions schemas/new_table_schema.json

This file was deleted.

2 changes: 1 addition & 1 deletion schemas/offers_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
{
"mode": "NULLABLE",
"name": "buying_asset_id",
"type": "STRING"
"type": "INTEGER"
},
{
"mode": "NULLABLE",
Expand Down
5 changes: 5 additions & 0 deletions schemas/trust_lines_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@
"name": "account_id",
"type": "STRING"
},
{
"mode": "NULLABLE",
"name": "asset_type",
"type": "STRING"
},
{
"mode": "NULLABLE",
"name": "asset_issuer",
Expand Down

0 comments on commit 77a1e1c

Please sign in to comment.