Skip to content

Commit

Permalink
lxd/db/cluster: Runs make update-schema.
Browse files Browse the repository at this point in the history
Signed-off-by: Mark Laing <[email protected]>
  • Loading branch information
markylaing committed Feb 28, 2024
1 parent f771499 commit 277196a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lxd/db/cluster/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ CREATE TABLE identities (
identifier TEXT NOT NULL,
name TEXT NOT NULL,
metadata TEXT NOT NULL,
first_seen_date DATETIME NOT NULL DEFAULT "0001-01-01T00:00:00Z",
last_seen_date DATETIME NOT NULL DEFAULT "0001-01-01T00:00:00Z",
updated_date DATETIME NOT NULL DEFAULT "0001-01-01T00:00:00Z",
UNIQUE (auth_method, identifier),
UNIQUE (type, identifier)
);
Expand Down Expand Up @@ -665,5 +668,5 @@ CREATE TABLE "warnings" (
);
CREATE UNIQUE INDEX warnings_unique_node_id_project_id_entity_type_code_entity_id_type_code ON warnings(IFNULL(node_id, -1), IFNULL(project_id, -1), entity_type_code, entity_id, type_code);
INSERT INTO schema (version, updated_at) VALUES (71, strftime("%s"))
INSERT INTO schema (version, updated_at) VALUES (72, strftime("%s"))
`

0 comments on commit 277196a

Please sign in to comment.