1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[SQL] How to programmatically generate the CREATE TABLE SQL statement for a given model in...

Discussão em 'Outras Linguagens' iniciado por Stack, Novembro 8, 2024 às 04:13.

  1. Stack

    Stack Membro Participativo

    I need to programmatically generate the CREATE TABLE statement for a given unmanaged model in my Django app (managed = False)

    Since i'm working on a legacy database, i don't want to create a migration and use sqlmigrate.

    The ./manage.py sql command was useful for this purpose but it has been removed in Django 1.8

    Do you know about any alternatives?

    Continue reading...

Compartilhe esta Página