migrations

package
v0.131.12 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package migrations generated by go-bindata. 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 1660134042_add_social_links_settings_table.up.sql 1660134060_settings_bio.up.sql 1660134070_add_wakuv2_store.up.sql 1660134072_waku2_store_messages.up.sql 1662365868_add_key_uid_accounts.up.sql 1662447680_add_keypairs_table.up.sql 1662460056_move_favourites_to_saved_addresses.up.sql 1662738097_add_base_fee_transaction.up.sql 1662972194_add_keypairs_table.up.sql 1664392661_add_third_party_id_to_waku_messages.up.sql 1664783660_add_sync_info_to_saved_addresses.up.sql 1668109917_wakunodes.up.sql 1670249678_display_name_to_settings_sync_clock_table.up.sql 1670836810_add_imported_flag_to_community_archive_hashes.up.sql 1671438731_add_magnetlink_uri_to_communities_archive_info.up.sql 1672933930_switcher_card.up.sql 1674056187_add_price_cache.up.sql 1674136690_ens_usernames.up.sql 1674232431_add_balance_history.up.sql 1676368933_keypairs_to_keycards.up.sql 1676951398_add_currency_format_cache.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("nonexistent") 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