The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/5365

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
The 'make generate' command was not run when patch 38 was introduced, so newly
installed LXDs are inconsistent: the schema version is effectively 38, but the
one stored in local.db is 37.

Closes #5364.

Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com>
From f8acb7e46ecfa1c5a80e0e795b32037e7567c0e1 Mon Sep 17 00:00:00 2001
From: Free Ekanayaka <free.ekanay...@canonical.com>
Date: Mon, 17 Dec 2018 08:57:39 +0100
Subject: [PATCH] Re-generate the fresh schema, bumping the schema version

The 'make generate' command was not run when patch 38 was introduced, so newly
installed LXDs are inconsistent: the schema version is effectively 38, but the
one stored in local.db is 37.

Signed-off-by: Free Ekanayaka <free.ekanay...@canonical.com>
---
 lxd/db/node/schema.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lxd/db/node/schema.go b/lxd/db/node/schema.go
index ec4101884a..6be1d7ba76 100644
--- a/lxd/db/node/schema.go
+++ b/lxd/db/node/schema.go
@@ -24,5 +24,5 @@ CREATE TABLE raft_nodes (
     UNIQUE (address)
 );
 
-INSERT INTO schema (version, updated_at) VALUES (37, strftime("%s"))
+INSERT INTO schema (version, updated_at) VALUES (38, strftime("%s"))
 `
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to