Globally renamed property RedirectUrl
to LongUrl
This commit is contained in:
@ -4,12 +4,12 @@ import "github.com/scylladb/gocqlx/v2/table"
|
||||
|
||||
var UrlTable = table.New(table.Metadata{
|
||||
Name: "fivefeeteleven.urls",
|
||||
Columns: []string{"id", "redirect_url"},
|
||||
Columns: []string{"id", "long_url"},
|
||||
PartKey: []string{"id"},
|
||||
SortKey: []string{},
|
||||
})
|
||||
|
||||
type UrlModel struct {
|
||||
ID string
|
||||
RedirectUrl string
|
||||
ID string
|
||||
LongUrl string
|
||||
}
|
||||
|
@ -15,7 +15,7 @@ func Seed(session gocqlx.Session) error {
|
||||
err = session.ExecStmt(`
|
||||
CREATE TABLE IF NOT EXISTS fivefeeteleven.urls (
|
||||
id text PRIMARY KEY,
|
||||
redirect_url text
|
||||
long_url text
|
||||
)`)
|
||||
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user