# README
GOSM
Database Migration
How to Create a New Migration
To create a new database migration file, follow these steps:
- Ensure
golang-migrate
is installed. - Run the following Makefile command:
make migrate-create
- This will generate a new migration file in the
database/migrations/
directory. - Edit the generated migration file to define the required schema changes.
After creating the migration, apply it by running:
How to Migrate the Database Schema
Follow these steps to apply database migrations:
- Install
golang-migrate
by following the instructions at golang-migrate/migrate. - Set the environment variable
DATABASE_URL
with your database connection string. - Run the following Makefile command to apply the migrations:
make migrate-up
# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Package docs Code generated by swaggo/swag.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author