{"id":18679487,"url":"https://github.com/jfollmann/knex-migrations-ts","last_synced_at":"2025-04-12T03:13:47.945Z","repository":{"id":113973914,"uuid":"395083572","full_name":"jfollmann/knex-migrations-ts","owner":"jfollmann","description":"Sample to use knex migrations with PostgreSQL and Typescript support.","archived":false,"fork":false,"pushed_at":"2021-08-12T15:53:37.000Z","size":45,"stargazers_count":12,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-12T03:13:42.568Z","etag":null,"topics":["knex","knex-migrate","knexjs","nodejs","postgres","postgresql","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/jfollmann.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":"2021-08-11T18:32:12.000Z","updated_at":"2024-12-14T00:49:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"0ff4dbb7-928d-45d0-bb47-e397a02ae8e4","html_url":"https://github.com/jfollmann/knex-migrations-ts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfollmann%2Fknex-migrations-ts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfollmann%2Fknex-migrations-ts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfollmann%2Fknex-migrations-ts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jfollmann%2Fknex-migrations-ts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jfollmann","download_url":"https://codeload.github.com/jfollmann/knex-migrations-ts/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248510002,"owners_count":21116130,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["knex","knex-migrate","knexjs","nodejs","postgres","postgresql","typescript"],"created_at":"2024-11-07T09:44:53.139Z","updated_at":"2025-04-12T03:13:47.939Z","avatar_url":"https://github.com/jfollmann.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sample knex migrations with Typescript\nSample to use knex migrations with PostgreSQL and Typescript support.\n\n## 🚀 Startup\n\n### Start `PostgreSQL` container (with docker-compose):\n```bash\ndocker-compose up -d\n```\n\n### Create your db in `PostgreSQL`:\n```sql\ncreate database \"knexDB\"\n```\n\n## ☕ Migrations\n\n### Create migration file:\n```bash\nnpm run migrate:make [name-of-migration]\n```\n\n### Update your database to last version:\n```bash\nnpm run migrate:latest\n```\n\n### Rollback all migrations\n```bash\nnpm run migrate:rollback --all\n```\n\n### Show completed and pending migrations:\n```bash\nnpm run migrate:list\n```\n\n### Show db currentVersion:\n```bash\nnpm run migrate:currentVersion\n```\n\n## 👌 Seeds\n\n### Create seed file:\n```bash\nnpm run seed:make [name-of-seed]\n```\n\n### Run all seeds:\n```bash\nnpm run seed:run\n```\n\n[Others commands in reference document](https://knexjs.org/#Migrations-CLI)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfollmann%2Fknex-migrations-ts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjfollmann%2Fknex-migrations-ts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjfollmann%2Fknex-migrations-ts/lists"}