Skip to content

Commit

Permalink
added sql file
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaytonNorthey92 committed Jan 3, 2025
1 parent ca88b7c commit 014606c
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions database/bfgd/scripts/0012.sql
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;

0 comments on commit 014606c

Please sign in to comment.