v0

package
v0.0.0-...-dcafc8e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateExtension = gormigrate.Migration{
	ID: "2024-09-17:create-extension-uuid-ossp",
	Migrate: func(tx *gorm.DB) error {
		if err := tx.Exec("CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\"").Error; err != nil {
			return fmt.Errorf("create extension: %w", err)
		}

		return nil
	},
	Rollback: func(tx *gorm.DB) error {
		return nil
	},
}

CreateExtension defines the initial migration, which creates the extension.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL