Commit 24cd62ef authored by Francesc Guasch's avatar Francesc Guasch
Browse files

Merge branch 'refactor/1188_nodes' of https://github.com/UPC/ravada into refactor/1188_nodes

parents 07f0b906 854fb862
......@@ -1441,7 +1441,6 @@ sub shutdown_domains($self) {
}
sub _shared_storage_cache($self, $node, $dir, $value=undef) {
return;
if (!defined $value) {
my $sth = $$CONNECTOR->dbh->prepare(
"SELECT is_shared FROM storage_nodes "
......
......@@ -2,6 +2,7 @@ create table storage_nodes (
`id` integer NOT NULL PRIMARY KEY AUTOINCREMENT
, `id_node1` integer NOT NULL
, `id_node2` integer NOT NULL
, `dir` varchar(255) NOT NULL
, `is_shared` integer NOT NULL DEFAULT 1
, UNIQUE (`id_node1`,`id_node2`)
, UNIQUE (`id_node1`,`id_node2`, `dir`)
);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment