Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mysql 数据迁移 datetime(6) 出错 #125

Open
thimper opened this issue Dec 24, 2019 · 0 comments
Open

mysql 数据迁移 datetime(6) 出错 #125

thimper opened this issue Dec 24, 2019 · 0 comments

Comments

@thimper
Copy link

thimper commented Dec 24, 2019

执行 update -database 出错 :
Failed executing DbCommand (3ms) [Parameters=[], CommandType='Text', CommandTimeout='30']

CREATE TABLE `AuditOperation` (
    `Id` char(36) NOT NULL,
    `FunctionName` longtext NULL,
    `UserId` longtext NULL,
    `UserName` longtext NULL,
    `NickName` longtext NULL,
    `Ip` longtext NULL,
    `OperationSystem` longtext NULL,
    `Browser` longtext NULL,
    `UserAgent` longtext NULL,
    `ResultType` int NOT NULL,
    `Message` longtext NULL,
    `Elapsed` int NOT NULL,
    `CreatedTime` datetime(6) NOT NULL,
    CONSTRAINT `PK_AuditOperation` PRIMARY KEY (`Id`)
);

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(6) NOT NULL,
CONSTRAINT PK_AuditOperation PRIMARY KEY (Id)
)' at line 14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant