PgDeltaDiffPreview.tsx 1.3 KB

1234567891011121314151617181920212223242526272829303132
  1. import { InlineLink } from '@/components/ui/InlineLink'
  2. const PG_DELTA_REPO_URL = 'https://github.com/briven/pg-toolbelt'
  3. export const PgDeltaDiffPreview = () => {
  4. return (
  5. <div>
  6. <p className="text-sm text-foreground-light mb-4">
  7. Use the <InlineLink href={PG_DELTA_REPO_URL}>pg-delta</InlineLink> project to generate
  8. schema diffs instead of migra when creating migrations from branch comparisons. pg-delta is
  9. in alpha and is designed to better handle RLS (Row Level Security) and other schema
  10. constructs.
  11. </p>
  12. <div className="my-6">
  13. <p className="text-sm text-foreground mb-2 font-medium">Please note:</p>
  14. <ul className="list-disc pl-6 text-sm text-foreground-light space-y-1">
  15. <li>pg-delta is in alpha; behavior may change.</li>
  16. <li>
  17. Generated migrations may contain errors. Review each migration carefully before
  18. executing it.
  19. </li>
  20. </ul>
  21. </div>
  22. <div className="space-y-2 mt-4!">
  23. <p className="text-sm">Enabling this preview will:</p>
  24. <ul className="list-disc pl-6 text-sm text-foreground-light space-y-1">
  25. <li>Use pg-delta to compute schema diffs when comparing branches, instead of migra</li>
  26. </ul>
  27. </div>
  28. </div>
  29. )
  30. }