add linux/unix distribution template table
Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
parent
57f215606e
commit
5e759d4ed6
|
@ -0,0 +1 @@
|
||||||
|
DROP TABLE templates;
|
|
@ -0,0 +1,9 @@
|
||||||
|
CREATE TABLE IF NOT EXISTS templates
|
||||||
|
( uuid TEXT UNIQUE NOT NULL PRIMARY KEY
|
||||||
|
, "name" TEXT UNIQUE NOT NULL
|
||||||
|
, distro TEXT NOT NULL
|
||||||
|
, version TEXT NOT NULL
|
||||||
|
, download_url TEXT NOT NULL
|
||||||
|
, sha256sum TEXT NOT NULL
|
||||||
|
, local_url TEXT NOT NULL
|
||||||
|
);
|
|
@ -18,9 +18,22 @@ table! {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
table! {
|
||||||
|
templates (uuid) {
|
||||||
|
uuid -> Text,
|
||||||
|
name -> Text,
|
||||||
|
distro -> Text,
|
||||||
|
version -> Text,
|
||||||
|
download_url -> Text,
|
||||||
|
sha256sum -> Text,
|
||||||
|
local_url -> Text,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
joinable!(instances -> connections (owner));
|
joinable!(instances -> connections (owner));
|
||||||
|
|
||||||
allow_tables_to_appear_in_same_query!(
|
allow_tables_to_appear_in_same_query!(
|
||||||
connections,
|
connections,
|
||||||
instances,
|
instances,
|
||||||
|
templates,
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue