我正在尝试使用fluentmigrator,在创建第一次迁移后,它会自动回滚。 VersionInfo表已创建。这是执行命令后得到的输出:
migrate.exe -a "Migrations.dll" --db Firebird -c " ... " -o --of="D:\log.sql" -t=migrate:up
我在控制台中获得的输出是:
-------------------------------------------------------------------------------
=============================== FluentMigrator ================================
-------------------------------------------------------------------------------
Source Code:
http://github.com/schambers/fluentmigrator
Ask For Help:
http://groups.google.com/group/fluentmigrator-google-group
-------------------------------------------------------------------------------
201312020001: CreateUsersTable migrating
-------------------------------------------------------------------------------
[+] CreateTable Users
[+] Committing and Retaining Transaction
[+] Committing and Retaining Transaction
[+] Committing and Retaining Transaction
[+] 201312020001: CreateUsersTable migrated
[+] Undoing 3 transaction(s)
[+] Undoing transaction 3
[+] Undoing transaction 2
[+] Undoing transaction 1
[+] Task completed.
这是日志文件:
/* 201312020001: CreateUsersTable migrating ================================== */
/* CreateTable Users*/
CREATE TABLE "Users" ("UserId" INTEGER NOT NULL, "Name" VARCHAR(10) NOT NULL, "PhoneNumber" VARCHAR(10) NOT NULL)
/* Committing and Retaining Transaction */
/* Committing and Retaining Transaction */
INSERT INTO "VersionInfo" ("Version", "AppliedOn") VALUES (201312020001, '2013-12-02 11:28:14')
/* Committing and Retaining Transaction */
/* 201312020001: CreateUsersTable migrated */
/* Undoing 3 transaction(s) */
/* Undoing transaction 3 */
DELETE FROM "VersionInfo" WHERE "Version" = 201312020001 AND "AppliedOn" = '2013-12-02 11:28:14'
/* Undoing transaction 2 */
/* Undoing transaction 1 */
DROP TABLE "Users"
/* Task completed. */
我不知道为什么这样做。任何人都可以帮助我吗?
谢谢!