Versions in this module Expand all Collapse all v1 v1.1.0 May 27, 2025 v1.0.9 May 22, 2025 Changes in this version + var ExtendedDefinitions = false + var ExtendedDefinitionsProfile = false + var ExtendedDefinitionsTodo = false + var ExtendedDefinitionsUser = false + func NewAuthAppConfig() django.AppConfig + func NewBlogAppConfig() django.AppConfig + func NewTodoAppConfig() django.AppConfig + type Action struct + Field migrator.Column + Index migrator.Index + Table migrator.Table + Type migrator.ActionType + type BlogComment struct + Author *User + Body string + CreatedAt time.Time + ID int64 + Post *BlogPost + UpdatedAt time.Time + func (m *BlogComment) FieldDefs() attrs.Definitions + type BlogPost struct + Author *User + Body string + CreatedAt time.Time + ID int64 + Published bool + Title string + UpdatedAt time.Time + func (m *BlogPost) FieldDefs() attrs.Definitions + type Profile struct + Biography string + ID int64 + Image string + User *User + Website string + func (m *Profile) FieldDefs() attrs.Definitions + type SQL struct + Params []any + SQL string + type TestMigrationEngine struct + Actions []Action + RawSQL []SQL + SetupCalled bool + StoredMigrations map[string]map[string]map[string]struct{} + func NewTestMigrationEngine(t *testing.T) *TestMigrationEngine + func (t *TestMigrationEngine) AddField(table migrator.Table, col migrator.Column) error + func (t *TestMigrationEngine) AddIndex(table migrator.Table, index migrator.Index) error + func (t *TestMigrationEngine) AlterField(table migrator.Table, old migrator.Column, newCol migrator.Column) error + func (t *TestMigrationEngine) CreateTable(table migrator.Table) error + func (t *TestMigrationEngine) DropIndex(table migrator.Table, index migrator.Index) error + func (t *TestMigrationEngine) DropTable(table migrator.Table) error + func (t *TestMigrationEngine) Execute(ctx context.Context, query string, args ...any) (sql.Result, error) + func (t *TestMigrationEngine) HasMigration(appName string, modelName string, migrationName string) (bool, error) + func (t *TestMigrationEngine) RemoveField(table migrator.Table, col migrator.Column) error + func (t *TestMigrationEngine) RemoveMigration(appName string, modelName string, migrationName string) error + func (t *TestMigrationEngine) RenameIndex(table migrator.Table, oldName string, newName string) error + func (t *TestMigrationEngine) RenameTable(table migrator.Table, newName string) error + func (t *TestMigrationEngine) Setup() error + func (t *TestMigrationEngine) StoreMigration(appName string, modelName string, migrationName string) error + type Todo struct + Completed bool + CreatedAt time.Time + Description string + ID int64 + Title string + UpdatedAt time.Time + User *User + func (m *Todo) FieldDefs() attrs.Definitions + type User struct + Age int32 + Email string + FirstName string + ID int64 + IsActive bool + LastName string + Name string + func (m *User) FieldDefs() attrs.Definitions