legacy

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 20, 2018 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HydraLegacyMigrations = map[string]*migrate.MemoryMigrationSource{
	"postgres": {
		Migrations: []*migrate.Migration{
			{
				Id: "1",
				Up: []string{
					`ALTER TABLE hydra_warden_group RENAME TO keto_role`,
					`ALTER TABLE hydra_warden_group_member RENAME COLUMN group_id TO role_id`,
					`ALTER TABLE hydra_warden_group_member RENAME TO keto_role_member`,
					`ALTER TABLE hydra_policy_migration RENAME TO keto_policy_migration`,
					`ALTER TABLE hydra_groups_migration RENAME TO keto_role_migration`,
				},
				Down: []string{
					`ALTER TABLE keto_role RENAME TO hydra_warden_group`,
					`ALTER TABLE hydra_warden_group_member RENAME COLUMN group_id TO role_id`,
					`ALTER TABLE keto_role_member RENAME TO hydra_warden_group_member`,
					`ALTER TABLE keto_policy_migration RENAME TO hydra_policy_migration`,
					`ALTER TABLE keto_role_migration RENAME TO hydra_groups_migration`,
				},
			},
		},
	},
	"mysql": {
		Migrations: []*migrate.Migration{
			{
				Id: "1",
				Up: []string{
					`RENAME TABLE hydra_warden_group RENAME TO keto_role`,
					`ALTER TABLE hydra_warden_group_member CHANGE group_id role_id varchar(255)`,
					`RENAME TABLE hydra_warden_group_member RENAME TO keto_role_member`,
					`RENAME TABLE hydra_policy_migration RENAME TO keto_policy_migration`,
					`RENAME TABLE hydra_groups_migration RENAME TO keto_role_migration`,
				},
				Down: []string{
					`RENAME TABLE keto_role TO hydra_warden_group`,
					`RENAME TABLE keto_role_member TO hydra_warden_group_member`,
					`RENAME TABLE keto_policy_migration TO hydra_policy_migration`,
					`RENAME TABLE keto_role_migration TO hydra_groups_migration`,
				},
			},
		},
	},
}

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