Browse Source

Code comments

Vova Tkach 5 years ago
parent
commit
0689185e32
1 changed files with 3 additions and 0 deletions
  1. 3 0
      support/migrate/000000003.go

+ 3 - 0
support/migrate/000000003.go

@@ -6,6 +6,9 @@ import (
 )
 
 func Migrate_000000003(db *sqlw.DB) error {
+	// ALTER TABLE blog_cat_post_rel ADD KEY post_id (post_id);
+	// ALTER TABLE blog_cat_post_rel ADD KEY category_id (category_id);
+
 	// Remove blog indexes
 	if _, err := db.Exec(`DROP INDEX post_id ON blog_cat_post_rel`); err != nil {
 		return err