Skip to content

Commit

Permalink
fix: allow duplicate ID when post is deleted (#715)
Browse files Browse the repository at this point in the history
  • Loading branch information
goenning committed Jan 8, 2019
1 parent 405c23c commit 1d8a639
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions migrations/201901072106_recreate_post_slug_index.sql
@@ -0,0 +1,2 @@
DROP INDEX post_slug_tenant_key;
CREATE UNIQUE INDEX post_slug_tenant_key ON posts (tenant_id, slug) WHERE status <> 6;
4 changes: 3 additions & 1 deletion public/components/common/EnvironmentInfo.tsx
Expand Up @@ -9,7 +9,9 @@ export const EnvironmentInfo = () => {
return (
<div className="c-env-info">
Env: {Fider.settings.environment} | Compiler: {Fider.settings.compiler} | Version: {Fider.settings.version} |
BuildTime: {Fider.settings.buildTime}
BuildTime: {Fider.settings.buildTime || "N/A"} |
{!Fider.isSingleHostMode() && `TenantID: ${Fider.session.tenant.id}`} |{" "}
{Fider.session.isAuthenticated && `UserID: ${Fider.session.user.id}`}
</div>
);
};

0 comments on commit 1d8a639

Please sign in to comment.