-
Notifications
You must be signed in to change notification settings - Fork 978
feat: add slug property to app, use in URLs #4573
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
6889450
ec5ecfe
e6ddf3c
43df27e
c658572
d174a90
7a79f4a
4efc389
fecef1e
1a5eabc
4086202
9d41a46
5b607e8
b53611f
b06dcad
3e07cf1
6aac60a
a423ce8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- drop "slug" column from "workspace_apps" table | ||
ALTER TABLE "workspace_apps" DROP COLUMN "slug"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
-- add "slug" column to "workspace_apps" table | ||
ALTER TABLE "workspace_apps" ADD COLUMN "slug" text DEFAULT ''; | ||
|
||
-- copy the "name" column for each workspace app to the "slug" column | ||
UPDATE "workspace_apps" SET "slug" = "name"; | ||
|
||
-- make "slug" column not nullable and remove default | ||
ALTER TABLE "workspace_apps" ALTER COLUMN "slug" SET NOT NULL; | ||
ALTER TABLE "workspace_apps" ALTER COLUMN "slug" DROP DEFAULT; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.