Skip to content

Commit

Permalink
“rebase”
Browse files Browse the repository at this point in the history
  • Loading branch information
Alva8756 committed Aug 18, 2023
1 parent 97b483f commit f4db7a2
Show file tree
Hide file tree
Showing 11 changed files with 6,241 additions and 23 deletions.
33 changes: 33 additions & 0 deletions db/migrations/00021_bom.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
-- +goose Up
-- +goose StatementBegin

CREATE TABLE bom_info (
serial_num STRING PRIMARY KEY NOT 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 (
aoc_mac_address STRING PRIMARY KEY NOT NULL,
serial_num STRING NOT NULL REFERENCES bom_info(serial_num) ON DELETE CASCADE
);

CREATE TABLE bmc_mac_address (
bmc_mac_address STRING PRIMARY KEY NOT NULL,
serial_num STRING NOT NULL REFERENCES bom_info(serial_num) ON DELETE CASCADE
);


-- +goose StatementEnd

-- +goose Down
-- +goose StatementBegin

DROP TABLE bom_info;
DROP TABLE aoc_mac_address;
DROP TABLE bmc_mac_address;

-- +goose StatementEnd
Loading

0 comments on commit f4db7a2

Please sign in to comment.