Unverified Commit df9b1fa7 authored by Francesc Guasch's avatar Francesc Guasch Committed by GitHub
Browse files

Refactor/install bullseye (#1580)

* install: package for Debian 11 (Bullseye)

* install: foreign key for domain_ports and indexes for newest mariadb
parent b083467a
......@@ -18,6 +18,7 @@ my $DEBIAN = "DEBIAN";
my %COPY_RELEASES = (
'ubuntu-19.04'=> ['ubuntu-18.10','ubuntu-19.10']
,'debian-10' => ['debian-11']
);
my %DIR = (
templates => '/usr/share/ravada'
......
......@@ -1216,6 +1216,7 @@ sub _add_indexes_generic($self) {
"unique(id_domain,n_order)"
,"unique(id_domain,driver)"
,"unique(id_vm,port)"
,"index(id_domain)"
]
,domain_ports => [
"unique (id_domain,internal_port):domain_port"
......@@ -1224,6 +1225,7 @@ sub _add_indexes_generic($self) {
]
,group_access => [
"unique (id_domain,name)"
,"index(id_domain)"
]
,requests => [
"index(status,at_time)"
......@@ -1254,17 +1256,23 @@ sub _add_indexes_generic($self) {
]
,booking_entry_ldap_groups => [
"index(id_booking_entry,ldap_group)"
,"index(id_booking_entry)"
]
,booking_entry_users => [
"index(id_booking_entry,id_user)"
,"index(id_booking_entry)"
,"index(id_user)"
]
,booking_entry_bases => [
"index(id_booking_entry,id_base)"
,"index(id_base)"
,"index(id_booking_entry)"
]
,volumes => [
'UNIQUE (id_domain,name):id_domain',
'UNIQUE (id_domain,n_order):id_domain2'
"index(id_domain)"
,'UNIQUE (id_domain,name):id_domain_name'
,'UNIQUE (id_domain,n_order):id_domain2'
]
,vms=> [
......
CREATE TABLE `domain_ports` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`id_domain` int(11) NOT NULL references domain(id),
`id_domain` int(11) NOT NULL references domains(id) on delete cascade,
`public_port` int(11) DEFAULT NULL,
`internal_port` int(11) DEFAULT NULL,
`name` varchar(32) DEFAULT NULL,
......
Markdown is supported
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