-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ca88b7c
commit 014606c
Showing
1 changed file
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
|
||
-- Copyright (c) 2025 Hemi Labs, Inc. | ||
-- Use of this source code is governed by the MIT License, | ||
-- which can be found in the LICENSE file. | ||
|
||
BEGIN; | ||
|
||
UPDATE version SET version = 12; | ||
|
||
CREATE TABLE l2_keystones_lowest_btc_block ( | ||
l2_keystone_abrev_hash BYTEA NOT NULL PRIMARY KEY, | ||
btc_block_hash BYTEA NULL, | ||
btc_block_height BIGINT NULL | ||
); | ||
|
||
CREATE TRIGGER pop_basis_upsert AFTER INSERT OR DELETE OR UPDATE | ||
ON pop_basis FOR EACH ROW EXECUTE PROCEDURE notify_event(); | ||
|
||
COMMIT; |