@@ -172,6 +172,10 @@ func (m Migrator) HasTable(dst interface{}) bool {
172
172
return false
173
173
}
174
174
175
+ // RenameTable See: [gorm.migrator.Migrator.RenameTable]
176
+ // Deprecated: DynamoDB does not possibly rename an existing table, so this operation is not supported.
177
+ //
178
+ // [gorm.migrator.Migrator.RenameTable]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.RenameTable
175
179
func (m Migrator ) RenameTable (oldName , newName interface {}) error {
176
180
return ErrDynmgrmAreNotSupported
177
181
}
@@ -184,22 +188,42 @@ func (m Migrator) TableType(dst interface{}) (gorm.TableType, error) {
184
188
return nil , ErrDynmgrmAreNotSupported
185
189
}
186
190
191
+ // AddColumn See: [gorm.migrator.Migrator.AddColumn]
192
+ // Deprecated: DynamoDB are schema less, so this operation is not supported.
193
+ //
194
+ // [gorm.migrator.Migrator.AlterColumn]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.AddColumn
187
195
func (m Migrator ) AddColumn (dst interface {}, field string ) error {
188
196
return ErrDynmgrmAreNotSupported
189
197
}
190
198
199
+ // DropColumn See: [gorm.migrator.Migrator.DropColumn]
200
+ // Deprecated: DynamoDB are schema less, so this operation is not supported.
201
+ //
202
+ // [gorm.migrator.Migrator.DropColumn]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.DropColumn
191
203
func (m Migrator ) DropColumn (dst interface {}, field string ) error {
192
204
return ErrDynmgrmAreNotSupported
193
205
}
194
206
207
+ // AlterColumn See: [gorm.migrator.Migrator.AlterColumn]
208
+ // Deprecated: DynamoDB are schema less, so this operation is not supported.
209
+ //
210
+ // [gorm.migrator.Migrator.AlterColumn]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.AlterColumn
195
211
func (m Migrator ) AlterColumn (dst interface {}, field string ) error {
196
212
return ErrDynmgrmAreNotSupported
197
213
}
198
214
215
+ // MigrateColumn See: [gorm.migrator.Migrator.MigrateColumn]
216
+ // Deprecated: DynamoDB are schema less, so this operation is not supported.
217
+ //
218
+ // [gorm.migrator.Migrator.MigrateColumn]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.MigrateColumn
199
219
func (m Migrator ) MigrateColumn (dst interface {}, field * schema.Field , columnType gorm.ColumnType ) error {
200
220
return ErrDynmgrmAreNotSupported
201
221
}
202
222
223
+ // MigrateColumnUnique See: [gorm.migrator.Migrator.MigrateColumnUnique]
224
+ // Deprecated: DynamoDB are schema less, so this operation is not supported.
225
+ //
226
+ // [gorm.migrator.Migrator.MigrateColumnUnique]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.MigrateColumnUnique
203
227
func (m Migrator ) MigrateColumnUnique (dst interface {}, field * schema.Field , columnType gorm.ColumnType ) error {
204
228
return ErrDynmgrmAreNotSupported
205
229
}
@@ -208,6 +232,10 @@ func (m Migrator) HasColumn(dst interface{}, field string) bool {
208
232
return false
209
233
}
210
234
235
+ // RenameColumn See: [gorm.migrator.Migrator.RenameColumn]
236
+ // Deprecated: DynamoDB are schema less, so this operation is not supported.
237
+ //
238
+ // [gorm.migrator.Migrator.RenameColumn]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.RenameColumn
211
239
func (m Migrator ) RenameColumn (dst interface {}, oldName , field string ) error {
212
240
return ErrDynmgrmAreNotSupported
213
241
}
@@ -216,22 +244,42 @@ func (m Migrator) ColumnTypes(dst interface{}) ([]gorm.ColumnType, error) {
216
244
return []gorm.ColumnType {}, ErrDynmgrmAreNotSupported
217
245
}
218
246
247
+ // CreateView See: [gorm.migrator.Migrator.CreateView]
248
+ // Deprecated: DynamoDB does not provide View feature, so this operation is not supported.
249
+ //
250
+ // [gorm.migrator.Migrator.CreateView]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.CreateView
219
251
func (m Migrator ) CreateView (name string , option gorm.ViewOption ) error {
220
252
return ErrDynmgrmAreNotSupported
221
253
}
222
254
255
+ // DropView See: [gorm.migrator.Migrator.DropView]
256
+ // Deprecated: DynamoDB does not provide View feature, so this operation is not supported.
257
+ //
258
+ // [gorm.migrator.Migrator.DropView]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.DropView
223
259
func (m Migrator ) DropView (name string ) error {
224
260
return ErrDynmgrmAreNotSupported
225
261
}
226
262
263
+ // CreateConstraint See: [gorm.migrator.Migrator.CreateConstraint]
264
+ // Deprecated: DynamoDB does not provide constraint feature, so this operation is not supported.
265
+ //
266
+ // [gorm.migrator.Migrator.CreateConstraint]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.CreateConstraint
227
267
func (m Migrator ) CreateConstraint (dst interface {}, name string ) error {
228
268
return ErrDynmgrmAreNotSupported
229
269
}
230
270
271
+ // DropConstraint See: [gorm.migrator.Migrator.DropConstraint]
272
+ // Deprecated: DynamoDB does not provide constraint feature, so this operation is not supported.
273
+ //
274
+ // [gorm.migrator.Migrator.DropConstraint]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.DropConstraint
231
275
func (m Migrator ) DropConstraint (dst interface {}, name string ) error {
232
276
return ErrDynmgrmAreNotSupported
233
277
}
234
278
279
+ // HasConstraint See: [gorm.migrator.Migrator.HasConstraint]
280
+ // Deprecated: DynamoDB does not provide constraint feature, so this operation is not supported.
281
+ //
282
+ // [gorm.migrator.Migrator.HasConstraint]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.HasConstraint
235
283
func (m Migrator ) HasConstraint (dst interface {}, name string ) bool {
236
284
return false
237
285
}
@@ -316,6 +364,10 @@ func (m Migrator) HasIndex(dst interface{}, name string) bool {
316
364
return false
317
365
}
318
366
367
+ // RenameIndex See: [gorm.migrator.Migrator.RenameIndex]
368
+ // Deprecated: DynamoDB does not possibly rename an existing index, so this operation is not supported.
369
+ //
370
+ // [gorm.migrator.Migrator.RenameIndex]: https://pkg.go.dev/gorm.io/gorm/migrator#Migrator.RenameIndex
319
371
func (m Migrator ) RenameIndex (dst interface {}, oldName , newName string ) error {
320
372
return ErrDynmgrmAreNotSupported
321
373
}
0 commit comments