سامانه صدور فاکتور و حسابداری
Neutralize superseded enterprise migration filename
davoodmehraban89 committed
Sep 30, 2026 at 01:43 UTC
7644cf45bb55c05344acf2db6b327d847182b825
1 file changed
+1
-14
supabase/migrations/20260929222000_iran_enterprise_foundation_collections.sql
renamed
+1
-14
@@ -1,15 +1 @@
1
-alter table public.records drop constraint if exists records_collection_check;
2
-alter table public.records add constraint records_collection_check check (collection = any (array[
3
-'companies','contacts','products','invoices','cheques','expenses','settings','purchases','payments',
4
-'fiscalYears','accounts','dimensionTypes','dimensionValues','accountDimensionRules','branches','projects','projectLinks',
5
-'postingProfiles','journalVouchers','journalLines','journalLineDimensions',
6
-'contracts','contractAmendments','contractParties','contractDeductions','guarantees','guaranteeEvents','contractStatements','phase4Audit',
7
-'warehouses','stockMovements','inventoryCounts','fixedAssets','assetDepreciations','currencies','exchangeRates','costCenters',
8
-'importBatches','integrationConnections','integrationOutbox','phase5Audit',
9
-'employees','employmentContracts','employeeLeave','cashboxes','pettyCashFunds','complianceRules'
10
-]::text[]));
11
-create unique index if not exists ux_finora_employee_personnel_no on public.records(owner_id,(data->>'companyId'),upper(data->>'personnelNo')) where collection='employees';
12
-create unique index if not exists ux_finora_employee_national_id on public.records(owner_id,(data->>'companyId'),(data->>'nationalId')) where collection='employees' and coalesce(data->>'nationalId','')<>'';
13
-create unique index if not exists ux_finora_employee_leave_year on public.records(owner_id,(data->>'companyId'),(data->>'employeeId'),(data->>'year')) where collection='employeeLeave';
14
-create unique index if not exists ux_finora_cashbox_code on public.records(owner_id,(data->>'companyId'),upper(data->>'code')) where collection='cashboxes';
1
+-- Superseded prepared filename. Production applied the identical migration as 20260929221252_iran_enterprise_foundation_collections.sql. Intentionally no-op to prevent duplicate DDL on fresh migration ordering.\n
\ No newline at end of file