test_field.py 文件源码

python
阅读 29 收藏 0 点赞 0 评论 0

项目:django-postgres-composite-types 作者: danni 项目源码 文件源码
def migrate(self, targets):
        """
        Migrate to a new state.

        MigrationExecutors can not be reloaded, as they cache the state of the
        migrations when created. Attempting to reuse one might make some
        migrations not run, as it thinks they have already been run.
        """
        executor = MigrationExecutor(connection)
        executor.migrate(targets)

        # Cant load state for apps in the initial empty state
        state_nodes = [node for node in targets if node[1] is not None]
        return executor.loader.project_state(state_nodes).apps
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号