diff --git a/bitshift/database/migration.py b/bitshift/database/migration.py index 84cf3d0..c02d09f 100644 --- a/bitshift/database/migration.py +++ b/bitshift/database/migration.py @@ -130,8 +130,9 @@ MIGRATIONS = [ ], # 11 -> 12 [ - """CREATE TABLE `stopwords` - LIKE information_schema.innodb_ft_default_stopword""", + """CREATE TABLE `stopwords` ( + `value` varchar(18) NOT NULL DEFAULT "" + ) ENGINE=InnoDB DEFAULT CHARSET=utf8""", """INSERT INTO `stopwords` VALUES ("a"), ("about"), ("an"), ("are"), ("as"), ("at"), ("be"), ("by"), ("how"), ("i"), ("it"), ("la"), ("of"), ("on"), ("that"), ("the"), diff --git a/bitshift/database/schema.sql b/bitshift/database/schema.sql index 0270e98..b276002 100644 --- a/bitshift/database/schema.sql +++ b/bitshift/database/schema.sql @@ -10,7 +10,13 @@ CREATE TABLE `version` ( ) ENGINE=InnoDB; INSERT INTO `version` VALUES (12); -CREATE TABLE `stopwords` LIKE information_schema.innodb_ft_default_stopword; +CREATE TABLE `stopwords` + LIKE information_schema.innodb_ft_default_stopword + ENGINE=InnoDB; + +CREATE TABLE `stopwords` ( + `value` varchar(18) NOT NULL DEFAULT "" +) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO `stopwords` VALUES ("a"), ("about"), ("an"), ("are"), ("as"), ("at"), ("be"), ("by"), ("how"), ("i"), ("it"), ("la"), ("of"), ("on"), ("that"), ("the"), ("to"), ("und"),