0
我有一個表/模型類的命名Account
產生以下模式:表生成導致SQL錯誤
Account:
actAs:
Timestampable: ~
SoftDelete:
name: deleted
type: boolean
columns:
branch_code:
type: integer
notnull: true
state_id:
type: integer
notnull: true
state_description:
type: string(20)
notnull: true
number:
type: integer
notnull: true
client_name:
type: string(100)
notnull: true
client_code:
type: integer
notnull: true
associated_do:
type: integer
notnull: true
loan_start_date:
type: datetime
notnull: true
first_missing_payment:
type: datetime
notnull: true
delay:
type: integer
notnull: true
balance:
type: float
notnull: true
limit:
type: float
notnull: true
lawyer_id:
type: integer
internal_user_id:
type: integer
solicitor_id:
type: integer
relations:
Lawyer:
local: lawyer_id
foreign: id
InternalUser:
local: internal_user_id
foreign: id
Solicitor:
local: solicitor_id
foreign: id
Branch:
local: branch_code
foreign: code
Evolutions:
type: many
class: Evolution
local: id
foreign: account_id
當我運行symfony的任務重新加載數據庫,出現以下錯誤(截斷以便於閱讀):
SQLSTATE [42000]:語法錯誤或訪問衝突:1064您的SQL語法錯誤;檢查對應於你的MySQL服務器版本使用附近的「限制FLOAT正確的語法手冊(18,2)NOT NULL,lawyer_id BIGINT,...)ENGINE = INNODB