inspectdbコマンドを実行するレガシーOracleデータベースがあります。DB の 1 つの列の型は NUMBER (精度とスケールなし) で、django から得たものは次のとおりです。
entity_id = models.DecimalField(unique=True, null=True, max_digits=0, decimal_places=-127, blank=True)
モデルからスキーマを生成しようとして syndb を実行すると、次のエラーが表示されます。
Error: One or more models did not validate:
DecimalFields require a "decimal_places" attribute that is a non-negative integer.
DecimalFields require a "max_digits" attribute that is a positive integer.
私の質問は、モデルのentity_idタイプを変更して、Oracleで生成されたNUMBERを取得するにはどうすればよいですか?