sqlite 迁移 oracle,django从sqlite3迁移到oracle导致ora2000

我在WindowsServer2012上有一个Django应用程序,它是用sqlite3作为数据库设置的,但它将要投入生产,所以我要把表迁移到服务器上的oracle 11g,我不关心数据,只关心表,所以当我运行时python manage.py migrate

我得到ORA-2000错误:总是缺少关键字

我是django和网站的新手,我缺了什么?在

数据库设置:

^{pr2}$

型号:class ForecastSummary(models.Model):

party=models.ForeignKey(PartyDetailsFinal,on_delete=models.CASCADE,null=True)

annual_price = models.DecimalField(max_digits=100, decimal_places=5, default=Decimal('0.00000'), blank=True,

null=True)

annual_HW = models.DecimalField(max_digits=100, decimal_places=5, default=Decimal('0.00000'), blank=True,

null=True)

annual_SW = models.DecimalField(max_digits=100, decimal_places=5, default=Decimal('0.00000'), blank=True,

null=True)

annual_total = models.DecimalField(max_digits=100, decimal_places=5, default=Decimal('0.00000'), blank=True,

null=True)

back_maintenance = models.DecimalField(max_digits=100, decimal_places=5, default=Decimal('0.00000'),

blank=True )

forecast_year0 = models.DecimalField(max_digits=100, decimal_places=5, default=Decimal('0.00000'), blank=True,

null=True)

forecast_year1 = models.DecimalField(max_digits=100, decimal_places=5, default=Decimal('0.00000'), blank=True,

null=True)

forecast_year2 = models.DecimalField(max_digits=100, decimal_places=5, default=Decimal('0.00000'), blank=True,

null=True)

forecast_year3 = models.DecimalField(max_digits=100, decimal_places=5, default=Decimal('0.00000'), blank=True,

null=True)

forecast_year4 = models.DecimalField(max_digits=100, decimal_places=5, default=Decimal('0.00000'), blank=True,

null=True)

forecast_year5 = models.DecimalField(max_digits=100, decimal_places=5, default=Decimal('0.00000'), blank=True,

null=True)

forecast_total_0to3_years = models.DecimalField(max_digits=100, decimal_places=5, default=Decimal('0.00000'),

blank=True )

forecast_total_0to5_years = models.DecimalField(max_digits=100, decimal_places=5, default=Decimal('0.00000'),

blank=True )

def __str__(self):

return "Instance Number =" + str(self.party.item_instance_number)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值