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