Răsfoiți Sursa

Cosmetic: noted some issues/to do items

Reinier Olislagers 11 ani în urmă
părinte
comite
522c812fbd
1 a modificat fișierele cu 8 adăugiri și 0 ștergeri
  1. 8 0
      scriptdb.pas

+ 8 - 0
scriptdb.pas

@@ -32,6 +32,10 @@ procedure RemoveParamClosing(var AParams: string);
 
 implementation
 
+{ to do: add support for dependencies when extracting script; otherwise running the script may fail
+evaluating dependency order:
+http://rosettacode.org/wiki/Topological_sort#Object_Pascal
+}
 uses SysTables, Main;
 
 (********************  Script Roles  ***********************)
@@ -407,6 +411,10 @@ begin
   for i:= 0 to TablesList.Count - 1 do
   with dmSysTables do
   begin
+    { to do: foreign keys are not picked up while FlameRobin does, e.g. this for employee.fdb:
+    ALTER TABLE EMPLOYEE ADD CONSTRAINT INTEG_28
+      FOREIGN KEY (DEPT_NO) REFERENCES DEPARTMENT (DEPT_NO);
+    }
     GetTableConstraints(TablesList[i], sqQuery);
     while not sqQuery.EOF do
     begin