-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
funds-manager: migrations: Add
gas_wallets
table
- Loading branch information
Showing
4 changed files
with
85 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
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
2 changes: 2 additions & 0 deletions
2
funds-manager/migrations/2024-08-01-214330_add_gas_wallets_table/down.sql
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,2 @@ | ||
-- Drop the gas_wallets table | ||
DROP TABLE IF EXISTS gas_wallets; |
8 changes: 8 additions & 0 deletions
8
funds-manager/migrations/2024-08-01-214330_add_gas_wallets_table/up.sql
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,8 @@ | ||
-- Create a table to store gas wallets | ||
CREATE TABLE gas_wallets ( | ||
id UUID PRIMARY KEY, | ||
address TEXT NOT NULL UNIQUE, | ||
peer_id TEXT, | ||
status TEXT NOT NULL DEFAULT 'inactive', | ||
created_at TIMESTAMP NOT NULL DEFAULT NOW() | ||
); |