Ver a proveniência

MySQL, how could you do something like that?

tags/v1.0^2
Ben Kurtovic há 12 anos
ascendente
cometimento
fd556d9e9e
2 ficheiros alterados com 10 adições e 3 eliminações
  1. +3
    -2
      bitshift/database/migration.py
  2. +7
    -1
      bitshift/database/schema.sql

+ 3
- 2
bitshift/database/migration.py Ver ficheiro

@@ -130,8 +130,9 @@ MIGRATIONS = [
], ],
# 11 -> 12 # 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 """INSERT INTO `stopwords` VALUES
("a"), ("about"), ("an"), ("are"), ("as"), ("at"), ("be"), ("by"), ("a"), ("about"), ("an"), ("are"), ("as"), ("at"), ("be"), ("by"),
("how"), ("i"), ("it"), ("la"), ("of"), ("on"), ("that"), ("the"), ("how"), ("i"), ("it"), ("la"), ("of"), ("on"), ("that"), ("the"),


+ 7
- 1
bitshift/database/schema.sql Ver ficheiro

@@ -10,7 +10,13 @@ CREATE TABLE `version` (
) ENGINE=InnoDB; ) ENGINE=InnoDB;
INSERT INTO `version` VALUES (12); 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 INSERT INTO `stopwords` VALUES
("a"), ("about"), ("an"), ("are"), ("as"), ("at"), ("be"), ("by"), ("how"), ("a"), ("about"), ("an"), ("are"), ("as"), ("at"), ("be"), ("by"), ("how"),
("i"), ("it"), ("la"), ("of"), ("on"), ("that"), ("the"), ("to"), ("und"), ("i"), ("it"), ("la"), ("of"), ("on"), ("that"), ("the"), ("to"), ("und"),


Carregando…
Cancelar
Guardar