Skip to content

Commit

Permalink
[db] Get rid of unused bb_search_wordmatch table (hurtom#90)
Browse files Browse the repository at this point in the history
  • Loading branch information
yukoff committed Aug 8, 2017
1 parent f434fca commit b75ad9b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 69 deletions.
26 changes: 0 additions & 26 deletions database/entities/Database/Entities/BbSearchWordmatch.php

This file was deleted.

36 changes: 0 additions & 36 deletions database/mappings/Database.Entities.BbSearchWordmatch.dcm.yml

This file was deleted.

13 changes: 6 additions & 7 deletions database/migrations/Version20170601000000.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,6 +320,12 @@ public function up(Schema $schema)
*/
$this->addSql('DROP TABLE bb_search_wordlist');

/**
* bb_search_wordmatch
* @see https://github.com/hurtom/toloka/issues/90
*/
$this->addSql('DROP TABLE bb_search_wordmatch');

$this->addSql('DROP TABLE bb_sessions_keys');
$this->addSql('DROP TABLE bb_themes');
$this->addSql('DROP TABLE bb_themes_name');
Expand Down Expand Up @@ -731,13 +737,6 @@ public function up(Schema $schema)
// $this->addSql('CREATE INDEX search_id ON bb_search_results (search_id)');
// $this->addSql('ALTER TABLE bb_search_results ADD PRIMARY KEY (session_id, search_type)');

// bb_search_wordmatch
$this->addSql('ALTER TABLE bb_search_wordmatch
CHANGE post_id post_id INT UNSIGNED NOT NULL,
CHANGE word_id word_id INT UNSIGNED NOT NULL,
ADD PRIMARY KEY (post_id, word_id),
ENGINE = InnoDB');

// bb_sessions
$this->addSql('DROP INDEX session_user_id ON bb_sessions');
$this->addSql('DROP INDEX session_id_ip_user_id ON bb_sessions');
Expand Down

0 comments on commit b75ad9b

Please sign in to comment.