X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/db833ba4517084f61a64907c6d15606e7c881edd..6ab5e576c0bccd88cc5d4e6924373a5e393b0fa1:/apps/djangosphinx/templates/source-multiple.conf diff --git a/apps/djangosphinx/templates/source-multiple.conf b/apps/djangosphinx/templates/source-multiple.conf deleted file mode 100644 index 6f525dcdb..000000000 --- a/apps/djangosphinx/templates/source-multiple.conf +++ /dev/null @@ -1,31 +0,0 @@ -source {{ source_name }} -{ - type = {{ database_engine }} - html_strip = 0 - html_index_attrs = - sql_host = {{ database_host }} - sql_user = {{ database_user }} - sql_pass = {{ database_password }} - sql_db = {{ database_name }} - sql_port = {{ database_port }} - - sql_query_pre = - sql_query_post = - sql_query = \ -{% for table_name, content_type in tables %} - SELECT {{ field_names|join:", " }}, {{ content_type.id }} as content_type \ - FROM `{{ table_name }}`{% if not loop.last %} UNION \{% endif %} -{% endfor %} -{% if group_columns %} - # ForeignKey's -{% for field_name in group_columns %} sql_group_column = {{ field_name }} -{% endfor %}{% endif %} -{% if bool_columns %} - # BooleanField's -{% for field_name in bool_columns %} sql_group_column = {{ field_name }} -{% endfor %}{% endif %} -{% if date_columns %} - # DateField's and DateTimeField's -{% for field_name in date_columns %} sql_date_column = {{ field_name }} -{% endfor %}{% endif %} -} \ No newline at end of file