Skip to content

Add organizations.handle and workspaces table#503

Draft
RhysSullivan wants to merge 1 commit intors/cloud-workspaces-01-idsfrom
rs/cloud-workspaces-02-schema
Draft

Add organizations.handle and workspaces table#503
RhysSullivan wants to merge 1 commit intors/cloud-workspaces-01-idsfrom
rs/cloud-workspaces-02-schema

Conversation

@RhysSullivan
Copy link
Copy Markdown
Owner

Adds a local URL handle to organizations (slugified from name with
collision suffixes) plus the workspaces table the cloud-workspaces plan
needs. The migration backfills handles for existing rows in a single CTE
update before flipping the column to NOT NULL UNIQUE.

upsertOrganization picks a free handle on first insert and keeps it
stable across name renames; pickFreeOrgHandle is exported so the test
seed worker uses the same algorithm.

Adds a local URL handle to organizations (slugified from name with
collision suffixes) plus the workspaces table the cloud-workspaces plan
needs. The migration backfills handles for existing rows in a single CTE
update before flipping the column to NOT NULL UNIQUE.

upsertOrganization picks a free handle on first insert and keeps it
stable across name renames; pickFreeOrgHandle is exported so the test
seed worker uses the same algorithm.
Copy link
Copy Markdown
Owner Author

RhysSullivan commented May 4, 2026

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 4, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Preview URL Updated (UTC)
✅ Deployment successful!
View logs
executor-marketing af96d76 Commit Preview URL

Branch Preview URL
May 04 2026, 05:10 PM

@cloudflare-workers-and-pages
Copy link
Copy Markdown

cloudflare-workers-and-pages Bot commented May 4, 2026

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

Status Name Latest Commit Updated (UTC)
✅ Deployment successful!
View logs
executor-cloud af96d76 May 04 2026, 05:13 PM

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 4, 2026

Open in StackBlitz

@executor-js/cli

npm i https://pkg.pr.new/@executor-js/cli@503

@executor-js/config

npm i https://pkg.pr.new/@executor-js/config@503

@executor-js/execution

npm i https://pkg.pr.new/@executor-js/execution@503

@executor-js/sdk

npm i https://pkg.pr.new/@executor-js/sdk@503

@executor-js/storage-core

npm i https://pkg.pr.new/@executor-js/storage-core@503

@executor-js/codemode-core

npm i https://pkg.pr.new/@executor-js/codemode-core@503

@executor-js/runtime-quickjs

npm i https://pkg.pr.new/@executor-js/runtime-quickjs@503

@executor-js/plugin-file-secrets

npm i https://pkg.pr.new/@executor-js/plugin-file-secrets@503

@executor-js/plugin-google-discovery

npm i https://pkg.pr.new/@executor-js/plugin-google-discovery@503

@executor-js/plugin-graphql

npm i https://pkg.pr.new/@executor-js/plugin-graphql@503

@executor-js/plugin-keychain

npm i https://pkg.pr.new/@executor-js/plugin-keychain@503

@executor-js/plugin-mcp

npm i https://pkg.pr.new/@executor-js/plugin-mcp@503

@executor-js/plugin-onepassword

npm i https://pkg.pr.new/@executor-js/plugin-onepassword@503

@executor-js/plugin-openapi

npm i https://pkg.pr.new/@executor-js/plugin-openapi@503

executor

npm i https://pkg.pr.new/executor@503

commit: af96d76

*/
export const organizations = pgTable("organizations", {
id: text("id").primaryKey(),
handle: text("handle").notNull().unique(),
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

slug not handle

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant