rake-db 2.23.52 → 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.js
CHANGED
|
@@ -3709,7 +3709,7 @@ const tablesSql = `SELECT
|
|
|
3709
3709
|
})}) t) AS "columns"
|
|
3710
3710
|
FROM pg_class c
|
|
3711
3711
|
JOIN pg_catalog.pg_namespace n ON n.oid = relnamespace
|
|
3712
|
-
WHERE relkind = 'r'
|
|
3712
|
+
WHERE (relkind = 'r' OR relkind = 'p')
|
|
3713
3713
|
AND ${filterSchema("nspname")}
|
|
3714
3714
|
ORDER BY relname`;
|
|
3715
3715
|
const viewsSql = `SELECT
|
|
@@ -4828,9 +4828,6 @@ const astToMigration = (currentSchema, config, asts) => {
|
|
|
4828
4828
|
const added = /* @__PURE__ */ new Set();
|
|
4829
4829
|
const dropped = /* @__PURE__ */ new Set();
|
|
4830
4830
|
const groups = [[]];
|
|
4831
|
-
const cycleAdd = /* @__PURE__ */ new Set();
|
|
4832
|
-
const cycleDrop = /* @__PURE__ */ new Set();
|
|
4833
|
-
const cycleDeps = /* @__PURE__ */ new Map();
|
|
4834
4831
|
for (const item of items) {
|
|
4835
4832
|
for (const add of item.add) {
|
|
4836
4833
|
toBeAdded.add(add);
|
|
@@ -4847,6 +4844,9 @@ const astToMigration = (currentSchema, config, asts) => {
|
|
|
4847
4844
|
let len = items.length;
|
|
4848
4845
|
if (!len) return;
|
|
4849
4846
|
for (; ; ) {
|
|
4847
|
+
const cycleAdd = /* @__PURE__ */ new Set();
|
|
4848
|
+
const cycleDrop = /* @__PURE__ */ new Set();
|
|
4849
|
+
const cycleDeps = /* @__PURE__ */ new Map();
|
|
4850
4850
|
for (let i = 0; i < items.length; i++) {
|
|
4851
4851
|
const item = items[i];
|
|
4852
4852
|
let satisfied = true;
|