Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Ravada-Mirror
Commits
6466015c
Commit
6466015c
authored
Apr 20, 2022
by
Francesc Guasch
Browse files
refactor(install): table domains_kvm
parent
07217276
Changes
3
Hide whitespace changes
Inline
Side-by-side
lib/Ravada.pm
View file @
6466015c
...
...
@@ -1397,6 +1397,9 @@ sub _add_indexes_generic($self) {
,"
unique (id_domain,name):name
"
,"
unique(id_vm,public_port)
"
]
,
domains_kvm
=>
[
"
unique (id_domain)
"
]
,
group_access
=>
[
"
unique (id_domain,name)
"
,"
index(id_domain)
"
...
...
@@ -1973,6 +1976,13 @@ sub _sql_create_tables($self) {
,'
id_vm
'
=>
'
int(11) DEFAULT NULL
'
}
]
,[
domains_kvm
=>
{
id
=>
'
integer NOT NULL PRIMARY KEY AUTO_INCREMENT
'
,
id_domain
=>
'
integer NOT NULL references `domains` (`id`) ON DELETE CASCADE
'
,
xml
=>
'
TEXT
'
}
]
,[
group_access
=>
{
id
=>
'
integer NOT NULL PRIMARY KEY AUTO_INCREMENT
'
...
...
@@ -2491,7 +2501,6 @@ sub _upgrade_tables {
$self
->
_upgrade_table
('
domains_network
','
allowed
','
int not null default 1
');
$self
->
_upgrade_table
('
domains_kvm
','
xml
','
TEXT
');
$self
->
_upgrade_table
('
iptables
','
id_vm
','
int DEFAULT NULL
');
$self
->
_upgrade_table
('
vms
','
security
','
varchar(255) default NULL
');
$self
->
_upgrade_table
('
grant_types
','
enabled
','
int not null default 1
');
...
...
sql/mysql/domains_kvm.sql
deleted
100644 → 0
View file @
07217276
CREATE
TABLE
`domains_kvm`
(
`id`
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
`id_domain`
int
(
11
)
NOT
NULL
,
`xml`
varchar
(
8092
)
DEFAULT
NULL
,
PRIMARY
KEY
(
`id`
),
UNIQUE
KEY
`id_domain`
(
`id_domain`
)
);
sql/sqlite/domains_kvm.sql
deleted
100644 → 0
View file @
07217276
CREATE
TABLE
`domains_kvm`
(
`id`
integer
NOT
NULL
PRIMARY
KEY
AUTOINCREMENT
,
`id_domain`
integer
NOT
NULL
,
`xml`
varchar
(
8092
)
DEFAULT
NULL
,
UNIQUE
(
`id_domain`
)
);
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment