Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

fix: allow duplicate ID when post is deleted (#715)

Guilherme Oenning1d8a6396be81
diff --git a/migrations/201901072106_recreate_post_slug_index.sql b/migrations/201901072106_recreate_post_slug_index.sql
new file mode 100644
index 000000000..ef3454060
--- /dev/null
+++ b/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;
\ No newline at end of file
diff --git a/public/components/common/EnvironmentInfo.tsx b/public/components/common/EnvironmentInfo.tsx
index d3dcee8ca..82eec0ccb 100644
--- a/public/components/common/EnvironmentInfo.tsx
+++ b/public/components/common/EnvironmentInfo.tsx
@@ -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>
);
};