mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
add script for meta migration
This commit is contained in:
parent
3d10c48380
commit
de6d32171f
3
core/scripts/migration/mysql_6_to_4.sql
Normal file
3
core/scripts/migration/mysql_6_to_4.sql
Normal file
@ -0,0 +1,3 @@
|
||||
alter table Tables drop column owner_table;
|
||||
alter table Tables drop column partition_tag;
|
||||
alter table Tables drop column version;
|
||||
7
core/scripts/migration/sqlite_6_to_4.sql
Normal file
7
core/scripts/migration/sqlite_6_to_4.sql
Normal file
@ -0,0 +1,7 @@
|
||||
CREATE TABLE 'TempTables' ( 'id' INTEGER PRIMARY KEY NOT NULL , 'table_id' TEXT UNIQUE NOT NULL , 'state' INTEGER NOT NULL , 'dimension' INTEGER NOT NULL , 'created_on' INTEGER NOT NULL , 'flag' INTEGER DEFAULT 0 NOT NULL , 'index_file_size' INTEGER NOT NULL , 'engine_type' INTEGER NOT NULL , 'nlist' INTEGER NOT NULL , 'metric_type' INTEGER NOT NULL);
|
||||
|
||||
INSERT INTO TempTables SELECT id, table_id, state, dimension, created_on, flag, index_file_size, engine_type, nlist, metric_type FROM Tables;
|
||||
|
||||
DROP TABLE Tables;
|
||||
|
||||
ALTER TABLE TempTables RENAME TO Tables;
|
||||
Loading…
x
Reference in New Issue
Block a user