rake-db 2.24.0 → 2.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -3707,7 +3707,7 @@ const tablesSql = `SELECT
|
|
|
3707
3707
|
})}) t) AS "columns"
|
|
3708
3708
|
FROM pg_class c
|
|
3709
3709
|
JOIN pg_catalog.pg_namespace n ON n.oid = relnamespace
|
|
3710
|
-
WHERE relkind = 'r'
|
|
3710
|
+
WHERE (relkind = 'r' OR relkind = 'p')
|
|
3711
3711
|
AND ${filterSchema("nspname")}
|
|
3712
3712
|
ORDER BY relname`;
|
|
3713
3713
|
const viewsSql = `SELECT
|
|
@@ -4826,9 +4826,6 @@ const astToMigration = (currentSchema, config, asts) => {
|
|
|
4826
4826
|
const added = /* @__PURE__ */ new Set();
|
|
4827
4827
|
const dropped = /* @__PURE__ */ new Set();
|
|
4828
4828
|
const groups = [[]];
|
|
4829
|
-
const cycleAdd = /* @__PURE__ */ new Set();
|
|
4830
|
-
const cycleDrop = /* @__PURE__ */ new Set();
|
|
4831
|
-
const cycleDeps = /* @__PURE__ */ new Map();
|
|
4832
4829
|
for (const item of items) {
|
|
4833
4830
|
for (const add of item.add) {
|
|
4834
4831
|
toBeAdded.add(add);
|
|
@@ -4845,6 +4842,9 @@ const astToMigration = (currentSchema, config, asts) => {
|
|
|
4845
4842
|
let len = items.length;
|
|
4846
4843
|
if (!len) return;
|
|
4847
4844
|
for (; ; ) {
|
|
4845
|
+
const cycleAdd = /* @__PURE__ */ new Set();
|
|
4846
|
+
const cycleDrop = /* @__PURE__ */ new Set();
|
|
4847
|
+
const cycleDeps = /* @__PURE__ */ new Map();
|
|
4848
4848
|
for (let i = 0; i < items.length; i++) {
|
|
4849
4849
|
const item = items[i];
|
|
4850
4850
|
let satisfied = true;
|