Skip to content

Commit

Permalink
Merge pull request #777 from shocknet/admin-chans
Browse files Browse the repository at this point in the history
admin channels
shocknet-justin authored Dec 2, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
2 parents 03d4bfc + a945038 commit 28b56a2
Showing 34 changed files with 18,811 additions and 5,991 deletions.
8 changes: 5 additions & 3 deletions metricsDatasource.js
Original file line number Diff line number Diff line change
@@ -2,15 +2,17 @@ import { DataSource } from "typeorm"
import { BalanceEvent } from "./build/src/services/storage/entity/BalanceEvent.js"
import { ChannelBalanceEvent } from "./build/src/services/storage/entity/ChannelsBalanceEvent.js"
import { ChannelRouting } from "./build/src/services/storage/entity/ChannelRouting.js"
import { RootOperation } from "./build/src/services/storage/entity/RootOperation.js"
import { LndMetrics1703170330183 } from './build/src/services/storage/migrations/1703170330183-lnd_metrics.js'
import { ChannelRouting1709316653538 } from './build/src/services/storage/migrations/1709316653538-channel_routing.js'
import { HtlcCount1724266887195 } from './build/src/services/storage/migrations/1724266887195-htlc_count.js'
import { BalanceEvents1724860966825 } from './build/src/services/storage/migrations/1724860966825-balance_events.js'

export default new DataSource({
type: "sqlite",
database: "metrics.sqlite",
entities: [BalanceEvent, ChannelBalanceEvent, ChannelRouting],
migrations: [LndMetrics1703170330183, ChannelRouting1709316653538, HtlcCount1724266887195]
entities: [BalanceEvent, ChannelBalanceEvent, ChannelRouting, RootOperation],
migrations: [LndMetrics1703170330183, ChannelRouting1709316653538, HtlcCount1724266887195, BalanceEvents1724860966825]
});

//npx typeorm migration:generate ./src/services/storage/migrations/balance_events -d ./metricsDatasource.js
//npx typeorm migration:generate ./src/services/storage/migrations/root_ops -d ./metricsDatasource.js
Loading

0 comments on commit 28b56a2

Please sign in to comment.