[lxc-devel] [lxd/master] Re-generate the fresh schema, bumping the schema version

freeekanayaka on Github lxc-bot at linuxcontainers.org
Mon Dec 17 07:59:48 UTC 2018


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 571 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20181217/d47ff84a/attachment.bin>
-------------- next part --------------
From f8acb7e46ecfa1c5a80e0e795b32037e7567c0e1 Mon Sep 17 00:00:00 2001
From: Free Ekanayaka <free.ekanayaka at 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.ekanayaka at 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"))
 `


More information about the lxc-devel mailing list