test_migrations

package
Version: v0.0.0-...-dcfb3e1 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MigrationFiles = func() http.FileSystem {
	fs := vfsgen۰FS{
		"/": &vfsgen۰DirInfo{
			name:    "/",
			modTime: time.Time{},
		},
		"/idempotent": &vfsgen۰DirInfo{
			name:    "idempotent",
			modTime: time.Time{},
		},
		"/idempotent/1-toc-run_second.sql": &vfsgen۰FileInfo{
			name:    "1-toc-run_second.sql",
			modTime: time.Time{},
			content: []byte("\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54\x4f\x20\x6c\x6f\x67\x20\x56\x41\x4c\x55\x45\x53\x28\x27\x69\x64\x65\x6d\x70\x6f\x74\x65\x6e\x74\x20\x32\x27\x29\x3b"),
		},
		"/idempotent/2-toc-run_first.sql": &vfsgen۰FileInfo{
			name:    "2-toc-run_first.sql",
			modTime: time.Time{},
			content: []byte("\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54\x4f\x20\x6c\x6f\x67\x20\x56\x41\x4c\x55\x45\x53\x28\x27\x69\x64\x65\x6d\x70\x6f\x74\x65\x6e\x74\x20\x31\x27\x29\x3b"),
		},
		"/preinstall": &vfsgen۰DirInfo{
			name:    "preinstall",
			modTime: time.Time{},
		},
		"/preinstall/001-setup.sql": &vfsgen۰FileInfo{
			name:    "001-setup.sql",
			modTime: time.Time{},
			content: []byte("\x43\x52\x45\x41\x54\x45\x20\x54\x41\x42\x4c\x45\x20\x6c\x6f\x67\x20\x28\x6d\x73\x67\x20\x54\x45\x58\x54\x2c\x20\x69\x64\x20\x73\x65\x72\x69\x61\x6c\x29\x3b\x0a\x0a\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54\x4f\x20\x6c\x6f\x67\x20\x56\x41\x4c\x55\x45\x53\x28\x27\x73\x65\x74\x75\x70\x27\x29\x3b"),
		},
		"/versions": &vfsgen۰DirInfo{
			name:    "versions",
			modTime: time.Time{},
		},
		"/versions/dev": &vfsgen۰DirInfo{
			name:    "dev",
			modTime: time.Time{},
		},
		"/versions/dev/0.1.0-dev": &vfsgen۰DirInfo{
			name:    "0.1.0-dev",
			modTime: time.Time{},
		},
		"/versions/dev/0.1.0-dev/1-migration.sql": &vfsgen۰FileInfo{
			name:    "1-migration.sql",
			modTime: time.Time{},
			content: []byte("\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54\x4f\x20\x6c\x6f\x67\x20\x56\x41\x4c\x55\x45\x53\x28\x27\x6d\x69\x67\x72\x61\x74\x69\x6f\x6e\x20\x30\x2e\x31\x2e\x30\x27\x29\x3b"),
		},
		"/versions/dev/0.10.0-dev": &vfsgen۰DirInfo{
			name:    "0.10.0-dev",
			modTime: time.Time{},
		},
		"/versions/dev/0.10.0-dev/1-migr_98_at.sql": &vfsgen۰FileInfo{
			name:    "1-migr_98_at.sql",
			modTime: time.Time{},
			content: []byte("\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54\x4f\x20\x6c\x6f\x67\x20\x56\x41\x4c\x55\x45\x53\x28\x27\x6d\x69\x67\x72\x61\x74\x69\x6f\x6e\x20\x30\x2e\x31\x30\x2e\x30\x3d\x31\x27\x29\x3b\x0a"),
		},
		"/versions/dev/0.10.0-dev/2-1_mig.sql": &vfsgen۰FileInfo{
			name:    "2-1_mig.sql",
			modTime: time.Time{},
			content: []byte("\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54\x4f\x20\x6c\x6f\x67\x20\x56\x41\x4c\x55\x45\x53\x28\x27\x6d\x69\x67\x72\x61\x74\x69\x6f\x6e\x20\x30\x2e\x31\x30\x2e\x30\x3d\x32\x27\x29\x3b\x0a"),
		},
		"/versions/dev/0.10.1-dev": &vfsgen۰DirInfo{
			name:    "0.10.1-dev",
			modTime: time.Time{},
		},
		"/versions/dev/0.10.1-dev/1-migr_98_at.sql": &vfsgen۰FileInfo{
			name:    "1-migr_98_at.sql",
			modTime: time.Time{},
			content: []byte("\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54\x4f\x20\x6c\x6f\x67\x20\x56\x41\x4c\x55\x45\x53\x28\x27\x6d\x69\x67\x72\x61\x74\x69\x6f\x6e\x20\x30\x2e\x31\x30\x2e\x31\x3d\x31\x27\x29\x3b\x0a"),
		},
		"/versions/dev/0.10.1-dev/2-1_mig.sql": &vfsgen۰FileInfo{
			name:    "2-1_mig.sql",
			modTime: time.Time{},
			content: []byte("\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54\x4f\x20\x6c\x6f\x67\x20\x56\x41\x4c\x55\x45\x53\x28\x27\x6d\x69\x67\x72\x61\x74\x69\x6f\x6e\x20\x30\x2e\x31\x30\x2e\x31\x3d\x32\x27\x29\x3b\x0a"),
		},
		"/versions/dev/0.10.2-beta.dev": &vfsgen۰DirInfo{
			name:    "0.10.2-beta.dev",
			modTime: time.Time{},
		},
		"/versions/dev/0.10.2-beta.dev/1-migr_98_at.sql": &vfsgen۰FileInfo{
			name:    "1-migr_98_at.sql",
			modTime: time.Time{},
			content: []byte("\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54\x4f\x20\x6c\x6f\x67\x20\x56\x41\x4c\x55\x45\x53\x28\x27\x6d\x69\x67\x72\x61\x74\x69\x6f\x6e\x20\x30\x2e\x31\x30\x2e\x32\x2d\x62\x65\x74\x61\x3d\x31\x27\x29\x3b\x0a"),
		},
		"/versions/dev/0.2.0-dev": &vfsgen۰DirInfo{
			name:    "0.2.0-dev",
			modTime: time.Time{},
		},
		"/versions/dev/0.2.0-dev/1-migration.sql": &vfsgen۰FileInfo{
			name:    "1-migration.sql",
			modTime: time.Time{},
			content: []byte("\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54\x4f\x20\x6c\x6f\x67\x20\x56\x41\x4c\x55\x45\x53\x28\x27\x6d\x69\x67\x72\x61\x74\x69\x6f\x6e\x20\x30\x2e\x32\x2e\x30\x27\x29\x3b"),
		},
		"/versions/dev/0.9.0-dev": &vfsgen۰DirInfo{
			name:    "0.9.0-dev",
			modTime: time.Time{},
		},
		"/versions/dev/0.9.0-dev/1-migration.sql": &vfsgen۰FileInfo{
			name:    "1-migration.sql",
			modTime: time.Time{},
			content: []byte("\x49\x4e\x53\x45\x52\x54\x20\x49\x4e\x54\x4f\x20\x6c\x6f\x67\x20\x56\x41\x4c\x55\x45\x53\x28\x27\x6d\x69\x67\x72\x61\x74\x69\x6f\x6e\x20\x30\x2e\x39\x2e\x30\x27\x29\x3b\x0a"),
		},
	}
	fs["/"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
		fs["/idempotent"].(os.FileInfo),
		fs["/preinstall"].(os.FileInfo),
		fs["/versions"].(os.FileInfo),
	}
	fs["/idempotent"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
		fs["/idempotent/1-toc-run_second.sql"].(os.FileInfo),
		fs["/idempotent/2-toc-run_first.sql"].(os.FileInfo),
	}
	fs["/preinstall"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
		fs["/preinstall/001-setup.sql"].(os.FileInfo),
	}
	fs["/versions"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
		fs["/versions/dev"].(os.FileInfo),
	}
	fs["/versions/dev"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
		fs["/versions/dev/0.1.0-dev"].(os.FileInfo),
		fs["/versions/dev/0.10.0-dev"].(os.FileInfo),
		fs["/versions/dev/0.10.1-dev"].(os.FileInfo),
		fs["/versions/dev/0.10.2-beta.dev"].(os.FileInfo),
		fs["/versions/dev/0.2.0-dev"].(os.FileInfo),
		fs["/versions/dev/0.9.0-dev"].(os.FileInfo),
	}
	fs["/versions/dev/0.1.0-dev"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
		fs["/versions/dev/0.1.0-dev/1-migration.sql"].(os.FileInfo),
	}
	fs["/versions/dev/0.10.0-dev"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
		fs["/versions/dev/0.10.0-dev/1-migr_98_at.sql"].(os.FileInfo),
		fs["/versions/dev/0.10.0-dev/2-1_mig.sql"].(os.FileInfo),
	}
	fs["/versions/dev/0.10.1-dev"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
		fs["/versions/dev/0.10.1-dev/1-migr_98_at.sql"].(os.FileInfo),
		fs["/versions/dev/0.10.1-dev/2-1_mig.sql"].(os.FileInfo),
	}
	fs["/versions/dev/0.10.2-beta.dev"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
		fs["/versions/dev/0.10.2-beta.dev/1-migr_98_at.sql"].(os.FileInfo),
	}
	fs["/versions/dev/0.2.0-dev"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
		fs["/versions/dev/0.2.0-dev/1-migration.sql"].(os.FileInfo),
	}
	fs["/versions/dev/0.9.0-dev"].(*vfsgen۰DirInfo).entries = []os.FileInfo{
		fs["/versions/dev/0.9.0-dev/1-migration.sql"].(os.FileInfo),
	}

	return fs
}()

MigrationFiles statically implements the virtual filesystem provided to vfsgen.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL