make tables under innodb
This commit is contained in:
parent
ba0da4b6a7
commit
0b6990402f
|
@ -94,7 +94,7 @@ class MySQLSchemaInstaller(AbstractSchemaInstaller):
|
||||||
stmt = """
|
stmt = """
|
||||||
CREATE TABLE new_oid (
|
CREATE TABLE new_oid (
|
||||||
zoid BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT
|
zoid BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT
|
||||||
) ENGINE = MyISAM;
|
) ENGINE = InnoDB;
|
||||||
"""
|
"""
|
||||||
self.runner.run_script(cursor, stmt)
|
self.runner.run_script(cursor, stmt)
|
||||||
|
|
||||||
|
@ -184,7 +184,7 @@ class MySQLSchemaInstaller(AbstractSchemaInstaller):
|
||||||
tid BIGINT NOT NULL,
|
tid BIGINT NOT NULL,
|
||||||
to_zoid BIGINT NOT NULL,
|
to_zoid BIGINT NOT NULL,
|
||||||
PRIMARY KEY (tid, zoid, to_zoid)
|
PRIMARY KEY (tid, zoid, to_zoid)
|
||||||
) ENGINE = MyISAM;
|
) ENGINE = InnoDB;
|
||||||
"""
|
"""
|
||||||
else:
|
else:
|
||||||
stmt = """
|
stmt = """
|
||||||
|
@ -193,7 +193,7 @@ class MySQLSchemaInstaller(AbstractSchemaInstaller):
|
||||||
to_zoid BIGINT NOT NULL,
|
to_zoid BIGINT NOT NULL,
|
||||||
tid BIGINT NOT NULL,
|
tid BIGINT NOT NULL,
|
||||||
PRIMARY KEY (zoid, to_zoid)
|
PRIMARY KEY (zoid, to_zoid)
|
||||||
) ENGINE = MyISAM;
|
) ENGINE = InnoDB;
|
||||||
"""
|
"""
|
||||||
|
|
||||||
self.runner.run_script(cursor, stmt)
|
self.runner.run_script(cursor, stmt)
|
||||||
|
@ -203,14 +203,14 @@ class MySQLSchemaInstaller(AbstractSchemaInstaller):
|
||||||
stmt = """
|
stmt = """
|
||||||
CREATE TABLE object_refs_added (
|
CREATE TABLE object_refs_added (
|
||||||
tid BIGINT NOT NULL PRIMARY KEY
|
tid BIGINT NOT NULL PRIMARY KEY
|
||||||
) ENGINE = MyISAM;
|
) ENGINE = InnoDB;
|
||||||
"""
|
"""
|
||||||
else:
|
else:
|
||||||
stmt = """
|
stmt = """
|
||||||
CREATE TABLE object_refs_added (
|
CREATE TABLE object_refs_added (
|
||||||
zoid BIGINT NOT NULL PRIMARY KEY,
|
zoid BIGINT NOT NULL PRIMARY KEY,
|
||||||
tid BIGINT NOT NULL
|
tid BIGINT NOT NULL
|
||||||
) ENGINE = MyISAM;
|
) ENGINE = InnoDB;
|
||||||
"""
|
"""
|
||||||
self.runner.run_script(cursor, stmt)
|
self.runner.run_script(cursor, stmt)
|
||||||
|
|
||||||
|
@ -221,7 +221,7 @@ class MySQLSchemaInstaller(AbstractSchemaInstaller):
|
||||||
keep BOOLEAN NOT NULL,
|
keep BOOLEAN NOT NULL,
|
||||||
keep_tid BIGINT NOT NULL,
|
keep_tid BIGINT NOT NULL,
|
||||||
visited BOOLEAN NOT NULL DEFAULT FALSE
|
visited BOOLEAN NOT NULL DEFAULT FALSE
|
||||||
) ENGINE = MyISAM;
|
) ENGINE = InnoDB;
|
||||||
CREATE INDEX pack_object_keep_zoid ON pack_object (keep, zoid);
|
CREATE INDEX pack_object_keep_zoid ON pack_object (keep, zoid);
|
||||||
"""
|
"""
|
||||||
self.runner.run_script(cursor, stmt)
|
self.runner.run_script(cursor, stmt)
|
||||||
|
@ -233,7 +233,7 @@ class MySQLSchemaInstaller(AbstractSchemaInstaller):
|
||||||
tid BIGINT NOT NULL,
|
tid BIGINT NOT NULL,
|
||||||
zoid BIGINT NOT NULL,
|
zoid BIGINT NOT NULL,
|
||||||
PRIMARY KEY (tid, zoid)
|
PRIMARY KEY (tid, zoid)
|
||||||
) ENGINE = MyISAM;"""
|
) ENGINE = InnoDB;"""
|
||||||
self.runner.run_script(cursor, stmt)
|
self.runner.run_script(cursor, stmt)
|
||||||
|
|
||||||
def _create_pack_state_tid(self, cursor):
|
def _create_pack_state_tid(self, cursor):
|
||||||
|
@ -241,7 +241,7 @@ class MySQLSchemaInstaller(AbstractSchemaInstaller):
|
||||||
stmt = """
|
stmt = """
|
||||||
CREATE TABLE pack_state_tid (
|
CREATE TABLE pack_state_tid (
|
||||||
tid BIGINT NOT NULL PRIMARY KEY
|
tid BIGINT NOT NULL PRIMARY KEY
|
||||||
) ENGINE = MyISAM;
|
) ENGINE = InnoDB;
|
||||||
"""
|
"""
|
||||||
self.runner.run_script(cursor, stmt)
|
self.runner.run_script(cursor, stmt)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue