mirror of
https://github.com/FJurmanovic/wallet-go-api.git
synced 2026-11-11 07:41:10 +00:00
fixed code documentation
This commit is contained in:
@@ -9,7 +9,15 @@ import (
|
||||
"github.com/go-pg/pg/v10/orm"
|
||||
)
|
||||
|
||||
// Creates subscriptions table if it does not exist.
|
||||
/*
|
||||
CreateTableSubscriptions
|
||||
|
||||
Creates subscriptions table if it does not exist.
|
||||
Args:
|
||||
*pg.DB: Postgres database client
|
||||
Returns:
|
||||
error: Returns if there is an error with table creation
|
||||
*/
|
||||
func CreateTableSubscriptions(db pg.DB) error {
|
||||
models := []interface{}{
|
||||
(*models.Subscription)(nil),
|
||||
|
||||
Reference in New Issue
Block a user