Skip to content

Commit

Permalink
Stub out migration
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhuaaa committed Apr 11, 2024
1 parent d414aa6 commit 3fa8f93
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 61 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ You must have the _exact_ go version listed in `go.mod` - you can verify this by

1. `dev/migrate-message $MIGRATION_NAME`

### Create a migration for the MLS database

1. `dev/migrate-mls $MIGRATION_NAME`

### Create a migration for the authz database

1. `dev/migrate-authz $MIGRATION_NAME`
Expand Down
9 changes: 9 additions & 0 deletions pkg/migrations/mls/20240411200242_init-identity.down.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
SET statement_timeout = 0;

--bun:split

SELECT 1

--bun:split

SELECT 2
9 changes: 9 additions & 0 deletions pkg/migrations/mls/20240411200242_init-identity.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
SET statement_timeout = 0;

--bun:split

SELECT 1

--bun:split

SELECT 2
150 changes: 89 additions & 61 deletions pkg/proto/mls/message_contents/content.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3fa8f93

Please sign in to comment.