#23632: Cannot install Stored Procedure on syncdb
-------------------------------------+-------------------------------------
     Reporter:  Tim-Erwin            |                    Owner:  nobody
         Type:  Uncategorized        |                   Status:  closed
    Component:  Core (Management     |                  Version:  1.7
  commands)                          |               Resolution:
     Severity:  Normal               |  worksforme
     Keywords:  sql syncdb           |             Triage Stage:
    Has patch:  0                    |  Unreviewed
  Needs tests:  0                    |      Needs documentation:  0
Easy pickings:  0                    |  Patch needs improvement:  0
                                     |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by claudep):

 * status:  new => closed
 * needs_docs:   => 0
 * resolution:   => worksforme
 * needs_tests:   => 0
 * needs_better_patch:   => 0


Comment:

 As stated in the docs, custom SQL in a sql file is deprecated in Django
 1.7, and should be done with a data migration now (and a RunSQL
 operation).

 https://docs.djangoproject.com/en/1.7/howto/initial-data/#providing-
 initial-sql-data
 https://docs.djangoproject.com/en/1.7/topics/migrations/#data-migrations
 https://docs.djangoproject.com/en/1.7/ref/migration-
 operations/#django.db.migrations.operations.RunSQL

 Please provide us with more details if this does not address your issue.

--
Ticket URL: <https://code.djangoproject.com/ticket/23632#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/067.f075a6d5dca16797cbf30171ba041670%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to