Skip to content

Commit 79d12fc

Browse files
committed
hotfix(migrator): GoDoc syntax
1 parent 2bd7aab commit 79d12fc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

migrator.go

+13
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ func (m Migrator) HasTable(dst interface{}) bool {
173173
}
174174

175175
// RenameTable See: [gorm.migrator.Migrator.RenameTable]
176+
//
176177
// Deprecated: DynamoDB does not possibly rename an existing table, so this operation is not supported.
177178
//
178179
// [gorm.migrator.Migrator.RenameTable]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.RenameTable
@@ -189,6 +190,7 @@ func (m Migrator) TableType(dst interface{}) (gorm.TableType, error) {
189190
}
190191

191192
// AddColumn See: [gorm.migrator.Migrator.AddColumn]
193+
//
192194
// Deprecated: DynamoDB are schema less, so this operation is not supported.
193195
//
194196
// [gorm.migrator.Migrator.AlterColumn]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.AddColumn
@@ -197,6 +199,7 @@ func (m Migrator) AddColumn(dst interface{}, field string) error {
197199
}
198200

199201
// DropColumn See: [gorm.migrator.Migrator.DropColumn]
202+
//
200203
// Deprecated: DynamoDB are schema less, so this operation is not supported.
201204
//
202205
// [gorm.migrator.Migrator.DropColumn]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.DropColumn
@@ -205,6 +208,7 @@ func (m Migrator) DropColumn(dst interface{}, field string) error {
205208
}
206209

207210
// AlterColumn See: [gorm.migrator.Migrator.AlterColumn]
211+
//
208212
// Deprecated: DynamoDB are schema less, so this operation is not supported.
209213
//
210214
// [gorm.migrator.Migrator.AlterColumn]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.AlterColumn
@@ -213,6 +217,7 @@ func (m Migrator) AlterColumn(dst interface{}, field string) error {
213217
}
214218

215219
// MigrateColumn See: [gorm.migrator.Migrator.MigrateColumn]
220+
//
216221
// Deprecated: DynamoDB are schema less, so this operation is not supported.
217222
//
218223
// [gorm.migrator.Migrator.MigrateColumn]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.MigrateColumn
@@ -221,6 +226,7 @@ func (m Migrator) MigrateColumn(dst interface{}, field *schema.Field, columnType
221226
}
222227

223228
// MigrateColumnUnique See: [gorm.migrator.Migrator.MigrateColumnUnique]
229+
//
224230
// Deprecated: DynamoDB are schema less, so this operation is not supported.
225231
//
226232
// [gorm.migrator.Migrator.MigrateColumnUnique]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.MigrateColumnUnique
@@ -233,6 +239,7 @@ func (m Migrator) HasColumn(dst interface{}, field string) bool {
233239
}
234240

235241
// RenameColumn See: [gorm.migrator.Migrator.RenameColumn]
242+
//
236243
// Deprecated: DynamoDB are schema less, so this operation is not supported.
237244
//
238245
// [gorm.migrator.Migrator.RenameColumn]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.RenameColumn
@@ -245,6 +252,7 @@ func (m Migrator) ColumnTypes(dst interface{}) ([]gorm.ColumnType, error) {
245252
}
246253

247254
// CreateView See: [gorm.migrator.Migrator.CreateView]
255+
//
248256
// Deprecated: DynamoDB does not provide View feature, so this operation is not supported.
249257
//
250258
// [gorm.migrator.Migrator.CreateView]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.CreateView
@@ -253,6 +261,7 @@ func (m Migrator) CreateView(name string, option gorm.ViewOption) error {
253261
}
254262

255263
// DropView See: [gorm.migrator.Migrator.DropView]
264+
//
256265
// Deprecated: DynamoDB does not provide View feature, so this operation is not supported.
257266
//
258267
// [gorm.migrator.Migrator.DropView]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.DropView
@@ -261,6 +270,7 @@ func (m Migrator) DropView(name string) error {
261270
}
262271

263272
// CreateConstraint See: [gorm.migrator.Migrator.CreateConstraint]
273+
//
264274
// Deprecated: DynamoDB does not provide constraint feature, so this operation is not supported.
265275
//
266276
// [gorm.migrator.Migrator.CreateConstraint]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.CreateConstraint
@@ -269,6 +279,7 @@ func (m Migrator) CreateConstraint(dst interface{}, name string) error {
269279
}
270280

271281
// DropConstraint See: [gorm.migrator.Migrator.DropConstraint]
282+
//
272283
// Deprecated: DynamoDB does not provide constraint feature, so this operation is not supported.
273284
//
274285
// [gorm.migrator.Migrator.DropConstraint]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.DropConstraint
@@ -277,6 +288,7 @@ func (m Migrator) DropConstraint(dst interface{}, name string) error {
277288
}
278289

279290
// HasConstraint See: [gorm.migrator.Migrator.HasConstraint]
291+
//
280292
// Deprecated: DynamoDB does not provide constraint feature, so this operation is not supported.
281293
//
282294
// [gorm.migrator.Migrator.HasConstraint]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.HasConstraint
@@ -365,6 +377,7 @@ func (m Migrator) HasIndex(dst interface{}, name string) bool {
365377
}
366378

367379
// RenameIndex See: [gorm.migrator.Migrator.RenameIndex]
380+
//
368381
// Deprecated: DynamoDB does not possibly rename an existing index, so this operation is not supported.
369382
//
370383
// [gorm.migrator.Migrator.RenameIndex]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.RenameIndex

0 commit comments

Comments
 (0)