migrations

package
v0.0.7-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2026 License: AGPL-3.0 Imports: 6 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MigrationList = []*gormigrate.Migration{
	createUserAndOrganisationTable(),
	createClustersTable(),
	createStackStorageAndVolumeTables(),
	addManagerRunningColumnToCluster(),
	createWorkspaceUserTable(),
	createWorkspaceNamespaceTable(),
	alterWorkspaceUserTableAddVersioningSupport(),
	alterWorkspaceStorageTable(),
	createStackAndStackResourceTables(),
	createImageBuildsTable(),
	addSourceVolumeTypeToVolumeMounts(),
	addStackResourceNameToImageBuilds(),
	createDefaultOrganisation(),
	addDefaultUserColumnToUsersTable(),
	addWorkspaceNameColumnToStacksTable(),
	removeOrganisationColumnFromUsers(),
	addNamespaceToStackResourcesTable(),
	createClusterImageRegistriesTable(),
	createDomainsTable(),
	createNamespaceTable(),
	renameWorkspaceNameToNamespaceIDInStack(),
	renameWorkspaceNameToNamespaceIDInVolume(),
	addSourceVolumeNameToVolumeMounts(),
	createStackVolumesTable(),
	addVolumeIDFkConstraintToVolumeMounts(),
	createOrganisationDomainsTable(),
	replaceDomainWithStackDomainsTable(),
	createSecretsTable(),
	createSecretUsageTable(),
	addClusterIdToStackTable(),
	addDeletionTimestampToStackTable(),
	addStackCRHashToStackTable(),
	createObjectStoresTable(),
	createPostgresAddonsTable(),
	createPostgresBackupsTable(),
	createPostgresAddonDatabasesTable(),
	addNamespaceIdToPostgresAddons(),
	createAddonUsagesTable(),
	addAPITokensTable(),
	addRefreshTokensTable(),
	addGitHubOAuthFields(),
	createProjectsTable(),
	createProjectMembershipsTable(),
	addProjectIDToResources(),
	updateUserRoles(),
	createOAuthStatesTable(),
	createOrgInvitesTable(),
	addInviteTokenToOAuthStates(),
	encryptClusterCredentials(),
	createStackConnectionsTable(),
	dropLegacyUsageTables(),
	dropVolumeMountsTable(),
	addStackConnectionDiscriminator(),
	addTimestampsToVolumesTable(),
	createStackReleasesTable(),
	createResourceReferencesTable(),
	dropResourceUsagesTable(),
	addSettingsToStacks(),
	createStackPreviewConfigsTable(),
	createPreviewStacksTable(),
	addWorkloadTypeColumns(),
	dropRegistryRetentionColumns(),
	createRegistryCredentialsTable(),
	createGitIntegrationsTable(),
	createGitInstallationsTable(),
	addReleaseValidationErrors(),
	createResourceValidationRecords(),
	addStackProjectNameUniqueIndex(),
	createReleaseEvents(),
	addPostgresAddonDeletionTimestamp(),
	addPreviewConfigEnvAndRepoNorm(),
	addPreviewStackCommentID(),
	addGitInstallationIDUniqueIndex(),
	addPreviewCommentPending(),
	renameDefaultToPlatform(),
	deleteOrphanPlatformOrg(),
	addClusterInfo(),
	deleteSeededPlatformDomains(),
	addReleaseWorkerStatus(),
	renameClusterPlatformToSharedCompute(),
	addClusterDeletionTimestamp(),
	dropWorkspaceUserTables(),
	createComputeAccess(),
}

Functions

This section is empty.

Types

type ClusterImageRegistry

type ClusterImageRegistry struct {
	ID                  string `gorm:"primary_key;default:gen_random_uuid()" json:"id"`
	ClusterID           string `gorm:"not null;index:idx_cluster_image_registry_cluster_id" json:"cluster_id"`
	OrganisationID      string `gorm:"not null;index:idx_cluster_image_registry_organisation_id" json:"organisation_id"`
	Name                string `gorm:"not null;check:name <> ''" json:"name"`
	BackendStorageSize  string `gorm:"not null;check:backend_storage_size <> ''" json:"backend_storage_size"`
	BackendStorageClass string
	MaxRepositories     int
	TagsPerRepository   int
	DeleteUntagged      bool
	Status              []byte `gorm:"type:jsonb" json:"status"`
}

type Namespace

type Namespace struct {
	ID             string `gorm:"primaryKey;default:gen_random_uuid()"`
	Name           string `gorm:"not null;unique"`
	OrganisationID string `gorm:"not null"`
	Labels         []byte `gorm:"type:jsonb"`
	Annotations    []byte `gorm:"type:jsonb"`
	CreatedAt      time.Time
	UpdatedAt      time.Time
}

type StackStorage

type StackStorage struct {
	ID                string `gorm:"primary_key;default:gen_random_uuid()"`
	OrganisationID    string `gorm:"not null"`
	UserID            string `gorm:"not null"`
	Name              string `gorm:"not null"`
	Namespace         string `gorm:"unique;not null"`
	Labels            []byte `gorm:"type:jsonb"`
	Annotations       []byte `gorm:"type:jsonb"`
	SSHConfig         []byte `gorm:"type:jsonb"`
	Status            []byte `gorm:"type:jsonb"`
	State             string `gorm:"not null"`
	DeletionTimeStamp *time.Time
	CreatedAt         time.Time
	UpdatedAt         time.Time
}

type Volume

type Volume struct {
	ID             string `gorm:"primary_key;default:gen_random_uuid()"`
	OrganisationID string `gorm:"not null"`
	UserID         string `gorm:"not null"`
	Name           string `gorm:"not null"`
	Namespace      string `gorm:"not null"`
	Labels         []byte `gorm:"type:jsonb"`
	Annotations    []byte `gorm:"type:jsonb"`
	Size           string
	StorageClass   string
	AccessMode     string
	VolumeSource   []byte `gorm:"type:jsonb"`
	SyncBeforeUse  bool
	Status         []byte `gorm:"type:jsonb"`
}

Source Files

Jump to

Keyboard shortcuts

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