سؤال

I have gone through this chapter and all the examples mentioned there are making the database schema initially and then operating over them.

But what to do if there is already an existing database schema with data ? Is there any way to create schema from it ?

هل كانت مفيدة؟

المحلول

You can use the sql= attributes in the models file to specify the table and column names in the existing schema. In this setup, you likely want to avoid using Persistent's automatic migration capabilities as well.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top