Skip to content

Commit 4ddeab6

Browse files
committed
fix syntax erorr
1 parent 9faf22a commit 4ddeab6

File tree

1 file changed

+1
-1
lines changed
  • pkg/postgres/migrations/202512021500_stakerSharesView

1 file changed

+1
-1
lines changed

pkg/postgres/migrations/202512021500_stakerSharesView/up.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ type Migration struct {
1414
func (m *Migration) Up(db *sql.DB, grm *gorm.DB, cfg *config.Config) error {
1515
queries := []string{
1616
// VIEW combines base shares + withdrawal queue adjustments
17-
`create view if not exists staker_share_snapshots_final as
17+
`create or replace view staker_share_snapshots_final as
1818
select
1919
coalesce(base.staker, wq.staker) as staker,
2020
coalesce(base.strategy, wq.strategy) as strategy,

0 commit comments

Comments
 (0)