-
Notifications
You must be signed in to change notification settings - Fork 8
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
Showing
11 changed files
with
6,291 additions
and
47 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,36 @@ | ||
-- +goose Up | ||
-- +goose StatementBegin | ||
|
||
CREATE TABLE bom_info ( | ||
id UUID PRIMARY KEY NOT NULL DEFAULT gen_random_uuid(), | ||
serial_num STRING NULL, | ||
aoc_mac_address STRING NULL, | ||
bmc_mac_address STRING NULL, | ||
num_defi_pmi STRING NULL, | ||
num_def_pwd STRING NULL, | ||
metro String NULL | ||
); | ||
|
||
CREATE TABLE aoc_mac_address_bom ( | ||
id UUID PRIMARY KEY NOT NULL DEFAULT gen_random_uuid(), | ||
aoc_mac_address STRING NULL, | ||
bom_info_id UUID NOT NULL REFERENCES bom_info(id) ON DELETE CASCADE | ||
); | ||
|
||
CREATE TABLE bmc_mac_address_bom ( | ||
id UUID PRIMARY KEY NOT NULL DEFAULT gen_random_uuid(), | ||
bmc_mac_address STRING NULL, | ||
bom_info_id UUID NOT NULL REFERENCES bom_info(id) ON DELETE CASCADE | ||
); | ||
|
||
|
||
-- +goose StatementEnd | ||
|
||
-- +goose Down | ||
-- +goose StatementBegin | ||
|
||
DROP TABLE bom_info; | ||
DROP TABLE aoc_mac_address_bom; | ||
DROP TABLE bmc_mac_address_bom; | ||
|
||
-- +goose StatementEnd |
Oops, something went wrong.