fix db script

This commit is contained in:
john 2025-05-18 17:32:46 +02:00
parent 9ec0632a48
commit 41d5fb60b2

View file

@ -19,7 +19,7 @@ var newCommand = new Command("new", "creates a new migrations")
newCommand.SetHandler(MakeNewMigration, nameArg, migrationsDirectoryOption); newCommand.SetHandler(MakeNewMigration, nameArg, migrationsDirectoryOption);
var connectionStringArg = new Argument<string>( var connectionStringArg = new Argument<string>(
"--connection-string", "connection-string",
"the connection string to the database" "the connection string to the database"
); );
@ -34,7 +34,7 @@ var connectionStringOption = new Option<string?>(
var upCommand = new Command("up", "update the database to the most current migration") var upCommand = new Command("up", "update the database to the most current migration")
{ {
migrationsDirectoryOption, migrationsDirectoryOption,
connectionStringArg, connectionStringOption,
}; };
upCommand.SetHandler( upCommand.SetHandler(