migratedata

package
v0.11.4 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package migratedata holds the functions for generating data migration files. It exists here for documentation and reference purpose only and has no runtime effect on the actual migration files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BackfillUnknown

func BackfillUnknown(dir *migrate.LocalDir) error

BackfillUnknown back-fills all empty users' names with the default value 'Unknown'.

func BackfillUserTags

func BackfillUserTags(dir *migrate.LocalDir) error

BackfillUserTags was used to generate the migration file '20221126185750_backfill_user_tags.sql'. It exists here for documentation purpose only, and can be used as a reference for future data migrations.

func SeedUsers

func SeedUsers(dir *migrate.LocalDir) error

SeedUsers add the initial users to the database.

Types

This section is empty.

Jump to

Keyboard shortcuts

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