1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #: Fix index creation on migrators (#4442)

This commit is contained in:
Christian González 2020-03-27 18:34:04 +01:00 committed by GitHub
parent f6f1b76539
commit e11a790fb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -98,12 +98,12 @@ class OneDBBacKEnd
"body MEDIUMTEXT, uid INTEGER, gid INTEGER," <<
"owner_u INTEGER, group_u INTEGER, other_u INTEGER",
index_sql: ["CREATE INDEX state_oid_idx ON vm_pool (state, oid);",
"CREATE FULLTEXT INDEX ftidx ON vm_pool(search_token);",
"CREATE INDEX applied_idx ON logdb (applied);"],
index_sql: ["CREATE INDEX IF NOT EXISTS state_oid_idx ON vm_pool (state, oid);",
"CREATE FULLTEXT INDEX IF NOT EXISTS ftidx ON vm_pool(search_token);",
"CREATE INDEX IF NOT EXISTS applied_idx ON logdb (applied);"],
index_sqlite: ["CREATE INDEX state_oid_idx ON vm_pool (state, oid);",
"CREATE INDEX applied_idx ON logdb (applied);"]
index_sqlite: ["CREATE INDEX IF NOT EXISTS state_oid_idx ON vm_pool (state, oid);",
"CREATE INDEX IF NOT EXISTS applied_idx ON logdb (applied);"]
},
"5.10.0" => {
logdb: "log_index BIGINT UNSIGNED PRIMARY KEY, term INTEGER, sqlcmd MEDIUMTEXT, " <<