Learn how to create and manage database migrations in Go using Docker and Postgres. This guide covers setting up a Docker container, creating a schema with TablePlus, installing golang-migrate, generating migration scripts, and running migrations effectively.
Table of contents
Table of ContentsWhat is Database Migration?How to Start and Run a Docker ContainerHow to Create and Run a Schema Using TablePlusHow to Install golang-migrateHow to Create a New MigrationHow to Create and Drop the Database Inside and Outside a Docker Postgres ContainerHow to View the Database in TablePlusHow to Run the MigrationsConclusion1 Comment
Sort: