mirror of
https://github.com/viq/NewsBlur.git
synced 2025-09-18 21:43:31 +00:00
Adding migration for creating search mapping.
This commit is contained in:
parent
428fba705b
commit
7c85e08830
2 changed files with 21 additions and 0 deletions
21
apps/search/migrations/0001_create_mapping.py
Normal file
21
apps/search/migrations/0001_create_mapping.py
Normal file
|
@ -0,0 +1,21 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
import datetime
|
||||
from south.db import db
|
||||
from south.v2 import DataMigration
|
||||
from django.db import models
|
||||
from apps.search.models import SearchStory
|
||||
|
||||
class Migration(DataMigration):
|
||||
|
||||
def forwards(self, orm):
|
||||
SearchStory.create_elasticsearch_mapping()
|
||||
|
||||
def backwards(self, orm):
|
||||
"Write your backwards methods here."
|
||||
|
||||
models = {
|
||||
|
||||
}
|
||||
|
||||
complete_apps = ['search']
|
||||
symmetrical = True
|
0
apps/search/migrations/__init__.py
Normal file
0
apps/search/migrations/__init__.py
Normal file
Loading…
Add table
Reference in a new issue