{"id":18043385,"url":"https://github.com/deedlefake/migration","last_synced_at":"2026-04-30T15:32:33.816Z","repository":{"id":139112624,"uuid":"434024774","full_name":"DeedleFake/migration","owner":"DeedleFake","description":"An experimental DSL-based database migration system for Go.","archived":false,"fork":false,"pushed_at":"2022-05-04T05:16:13.000Z","size":64,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-26T03:57:35.740Z","etag":null,"topics":["database","go","golang","migrations","sql"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DeedleFake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-12-02T00:01:03.000Z","updated_at":"2022-05-02T00:33:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"af654fc2-2888-4fde-81ed-f90a5facc118","html_url":"https://github.com/DeedleFake/migration","commit_stats":null,"previous_names":["deedlefake/migrate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DeedleFake/migration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeedleFake%2Fmigration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeedleFake%2Fmigration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeedleFake%2Fmigration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeedleFake%2Fmigration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DeedleFake","download_url":"https://codeload.github.com/DeedleFake/migration/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DeedleFake%2Fmigration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32469344,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: 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":["database","go","golang","migrations","sql"],"created_at":"2024-10-30T17:08:34.560Z","updated_at":"2026-04-30T15:32:33.799Z","avatar_url":"https://github.com/DeedleFake.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"migration\n=========\n\nmigration is a project to create a Go framework for handling database migrations using actual Go code. It is still in early development, but the general idea is to pattern migration definition after `go test` unit test definitions. A user should be able to write a package containing functions that look like the example below, run `go generate`, and get a package that they can import elsewhere in their module that will perform the desired migrations on an `*sql.DB` instance.\n\nExample of Intended Functionality\n---------------------------------\n\nThis is very early design and hasn't been thought through completely yet. The idea is to pattern after ActiveRecord's migrations, but with some changes. In particular, a dependency system is planned that will hopefully make it easier to structure migrations in a project being worked on by multiple people simultaneously.\n\n```go\nfunc MigrateInit(m *migration.M) {\n\tm.CreateTable(\"example\", func(t *migration.T) {\n\t\tt.AddColumn(\"id\", migration.BigInt).PrimaryKey()\n\t\tt.AddColumn(\"name\", migration.String).NotNull(),\n\t\tt.AddColumn(\"val\", migration.String)\n\t})\n}\n\nfunc MigrateMakeValNotNull(m *migration.M) {\n\tm.Require(\"Init\")\n\n\tm.AlterTable(\"example\", func(t *migration.T) {\n\t\tt.Column(\"val\").NotNull()\n\t})\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeedlefake%2Fmigration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeedlefake%2Fmigration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeedlefake%2Fmigration/lists"}