{"id":20500211,"url":"https://github.com/aronium/migration","last_synced_at":"2026-04-08T22:32:07.158Z","repository":{"id":91944108,"uuid":"54424340","full_name":"aronium/migration","owner":"aronium","description":"Database migration tool for SQL Server and SQLite written in C#","archived":false,"fork":false,"pushed_at":"2021-10-09T16:38:26.000Z","size":70,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-20T11:52:59.381Z","etag":null,"topics":["chsarp","database","database-migrations","dotnet","sql-server","sqlite","sqlite-database"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aronium.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-03-21T21:31:19.000Z","updated_at":"2021-10-09T16:38:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"b62819ad-05f7-45bc-ad83-e0ea4c045c96","html_url":"https://github.com/aronium/migration","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aronium/migration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aronium%2Fmigration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aronium%2Fmigration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aronium%2Fmigration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aronium%2Fmigration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aronium","download_url":"https://codeload.github.com/aronium/migration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aronium%2Fmigration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31577444,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chsarp","database","database-migrations","dotnet","sql-server","sqlite","sqlite-database"],"created_at":"2024-11-15T18:20:10.893Z","updated_at":"2026-04-08T22:32:07.140Z","avatar_url":"https://github.com/aronium.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Aronium Migration\n\nAronium.Migration is a console application written in C# used for managing migrations for SQL Server and SQLite databases.\n\nIt uses similar commands as [MyBatis Migrations](http://www.mybatis.org/migrations/)\n\n * `bootstrap` - Initializes database configuration\n * `status` - Gets the migrations status\n * `new` - Creates new migration script\n * `up` - Executes new migration scripts \n * `pending` - Runs all non executed migration scripts\n * `help` - Displays help\n\nCommands without additional parameters can be executed with command name only, while commands that contains parameters must be executed with leading minus sign (-).\n\n**IMPORTANT:** *bootstrap* command must be executed before other commands so database credentials and properties are set properly.\n\nNote that *Aronium.Migration.SQLite* uses shared files from *Aronium.Migration* project, added as linked files.\n\n## Usage\n\nBefore executing any command from console, navigate to directory containing `migration.exe` or specifiy its full path. \n\n#### Bootstrap command\n```\n\u003e migration bootstrap\n```\n*SQL Server*\n\nExecuting `bootstrap` command will ask for a server and credentials to use.\nFollow the instructions to define connection parameters like server name, database and user credentials. Once you have entered your credentials and server properties, they will be saved in \"migration.properties\" file, and can be used when required.\n\nYou can also use input parameters to provide database connection properties without a config file, as follows:\n```\n-server SERVER_NAME -database DATABASE_NAME -username USERNAME -password PASSWORD\n```\n\n*SQLite*\n\nExecuting `bootstrap` command will ask for a database file (SQLite database)\n\n\u003e Database file:\n\nWrite file name or a full path to your SQLite database\n\u003e Selected file: C:\\\\...\\demo.sqlite\n\u003e \n\u003e Specified file do not exists. Do you want to create new database file? Y/N\n\nIf you press `Y`, SQLite database will be automatically created on specified location.\n\n#### New command\n```\n\u003e migration -new \"My First Migration Script\"\n```\nThis command will output the result as:\n\u003e New script added. Path: C:\\\\...\\Migrations\\Scripts\\1_0__My_First_Migration_Script.sql\n\n**Make sure you execute \"new\" command with leading minus sign before command name, eg. *-new \"script file name\"*, so file name is parsed correctly**\n\nIf leading minus sign is ommited, you will be asked to enter file name again.\n\nRunning \"new\" command without specified version name will add new file with major version automatically generated.\n\n#### Status command\n```\n\u003e migration status\n```\nThis command will output current migration status with executed and pending migration scripts.\n\n#### Up command\n```\n\u003e migration up\n```\nRunning `up` command will apply newer migrations then the current version.\n\n\n#### Pending command\n```\n\u003e migration pending\n```\nRunning `pending` command will execute all pending migrations.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faronium%2Fmigration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faronium%2Fmigration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faronium%2Fmigration/lists"}