migrations

package
v0.104.1 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2022 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package migrations Code generated by go-bindata. (@generated) DO NOT EDIT. sources: 1640111208_dummy.up.sql 1642666031_add_removed_clock_to_bookmarks.up.sql 1643644541_gif_api_key_setting.up.sql 1644188994_recent_stickers.up.sql 1646659233_add_address_to_dapp_permisssion.up.sql 1646841105_add_emoji_account.up.sql 1647278782_display_name.up.sql 1647862838_reset_last_backup.up.sql 1647871652_add_settings_sync_clock_table.up.sql 1647880168_add_torrent_config.up.sql 1647882837_add_communities_settings_table.up.sql 1647956635_add_waku_messages_table.up.sql 1648554928_network_test.up.sql 1649174829_add_visitble_token.up.sql 1649882262_add_derived_from_accounts.up.sql 1650612625_add_community_message_archive_hashes_table.up.sql 1650616788_add_communities_archives_info_table.up.sql 1652715604_add_clock_accounts.up.sql 1653037334_add_notifications_settings_table.up.sql 1654702119_add_mutual_contact_settings.up.sql 1655375270_add_clock_field_to_communities_settings_table.up.sql 1655385721_drop_networks_config.up.sql 1655385724_networks_chainColor_shortName.up.sql 1655456688_add_deleted_at_field_to_bookmarks_table.up.sql 1655462032_create_bookmarks_deleted_at_index.up.sql 1657617291_add_multi_transactions_table.up.sql doc.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asset

func Asset(name string) ([]byte, error)

Asset loads and returns the asset for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetDir

func AssetDir(name string) ([]string, error)

AssetDir returns the file names below a certain directory embedded in the file by go-bindata. For example if you run go-bindata on data/... and data contains the following hierarchy:

data/
  foo.txt
  img/
    a.png
    b.png

then AssetDir("data") would return []string{"foo.txt", "img"} AssetDir("data/img") would return []string{"a.png", "b.png"} AssetDir("foo.txt") and AssetDir("notexist") would return an error AssetDir("") will return []string{"data"}.

func AssetInfo

func AssetInfo(name string) (os.FileInfo, error)

AssetInfo loads and returns the asset info for the given name. It returns an error if the asset could not be found or could not be loaded.

func AssetNames

func AssetNames() []string

AssetNames returns the names of the assets.

func Migrate

func Migrate(db *sql.DB) error

Migrate applies migrations.

func MustAsset

func MustAsset(name string) []byte

MustAsset is like Asset but panics when Asset would return an error. It simplifies safe initialization of global variables.

func RestoreAsset

func RestoreAsset(dir, name string) error

RestoreAsset restores an asset under the given directory

func RestoreAssets

func RestoreAssets(dir, name string) error

RestoreAssets restores an asset under the given directory recursively

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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