misc/migration/3.9.5_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Tue, 29 Sep 2015 15:15:03 +0200
changeset 10626 93f8d239c708
parent 6105 a648c832da1f
permissions -rw-r--r--
[server] use sqls_create_multicol_unique_index to index entities.extid SQL Server's UNIQUE is not standards compliant, it doesn't accept two NULL values. Related to #7173702.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6105
a648c832da1f RQLUniqueConstraint not in CWConstraintType for some old instances
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
if not rql('CWConstraintType X WHERE X name "RQLUniqueConstraint"',
a648c832da1f RQLUniqueConstraint not in CWConstraintType for some old instances
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     2
           ask_confirm=False):
a648c832da1f RQLUniqueConstraint not in CWConstraintType for some old instances
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     3
    rql('INSERT CWConstraintType X: X name "RQLUniqueConstraint"',
a648c832da1f RQLUniqueConstraint not in CWConstraintType for some old instances
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     4
        ask_confirm=False)