"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "keystone/common/sql/migrate_repo/versions/104_drop_user_name_domainid_constraint.py" between
keystone-15.0.0.tar.gz and keystone-15.0.1.tar.gz

About: OpenStack Keystone (Core Service: Identity) provides an authentication and authorization service for other OpenStack services. Provides a catalog of endpoints for all OpenStack services.
The "Stein" series (maintained release).

104_drop_user_name_domainid_constraint.py  (keystone-15.0.0):104_drop_user_name_domainid_constraint.py  (keystone-15.0.1)
skipping to change at line 19 skipping to change at line 19
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
import migrate import migrate
import sqlalchemy as sql import sqlalchemy as sql
_USER_TABLE_NAME = 'user' _USER_TABLE_NAME = 'user'
_USER_NAME_COLUMN_NAME = 'name' _USER_NAME_COLUMN_NAME = 'name'
_USER_DOMAINID_COLUMN_NAME = 'domain_id' _USER_DOMAINID_COLUMN_NAME = 'domain_id'
_USER_PASSWORD_COLUMN_NAME = 'password' _USER_PASSWORD_COLUMN_NAME = 'password' # nosec
def upgrade(migrate_engine): def upgrade(migrate_engine):
meta = sql.MetaData() meta = sql.MetaData()
meta.bind = migrate_engine meta.bind = migrate_engine
user_table = sql.Table(_USER_TABLE_NAME, meta, autoload=True) user_table = sql.Table(_USER_TABLE_NAME, meta, autoload=True)
# NOTE(gnuoy): the `domain_id` unique constraint is not guaranteed to # NOTE(gnuoy): the `domain_id` unique constraint is not guaranteed to
# be a fixed name, such as 'ixu_user_name_domain_id`, so we need to # be a fixed name, such as 'ixu_user_name_domain_id`, so we need to
# search for the correct constraint that only affects # search for the correct constraint that only affects
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)