提交 b6686049 authored 作者: Thomas Mueller's avatar Thomas Mueller

don't drop sequences that belong to a table

上级 645aa1ab
...@@ -208,7 +208,7 @@ public class ScriptCommand extends ScriptBase { ...@@ -208,7 +208,7 @@ public class ScriptCommand extends ScriptBase {
ObjectArray sequences = db.getAllSchemaObjects(DbObject.SEQUENCE); ObjectArray sequences = db.getAllSchemaObjects(DbObject.SEQUENCE);
for (int i = 0; i < sequences.size(); i++) { for (int i = 0; i < sequences.size(); i++) {
Sequence sequence = (Sequence) sequences.get(i); Sequence sequence = (Sequence) sequences.get(i);
if (drop) { if (drop && !sequence.getBelongsToTable()) {
add(sequence.getDropSQL(), false); add(sequence.getDropSQL(), false);
} }
add(sequence.getCreateSQL(), false); add(sequence.getCreateSQL(), false);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论