Skip to content
Snippets Groups Projects
Verified Commit e4a8931d authored by Timm Fitschen's avatar Timm Fitschen
Browse files

WIP: versioning

parent 7660acd7
No related branches found
No related tags found
No related merge requests found
......@@ -80,20 +80,20 @@ BEGIN
AND t.nanos = l.nanos
AND t.username = l.username
AND t.realm = l.realm )
WHERE l.entity_id = unversioned_id;
WHERE l.entity_id = unversioned_id AND unversioned_id > 99;
-- insert single version into entity_version (for id<100)
INSERT IGNORE INTO entity_version (entity_id, hash, version, _iversion,
_ipparent, srid)
SELECT
unversioned_id AS entity_id,
"bla" AS hash,
NULL AS hash,
SHA1(UUID()) AS version,
1 AS _iversion,
NULL AS _ipparent,
t.srid AS srid
FROM transactions AS t
WHERE t.seconds = 0 AND t.nanos = 0;
WHERE t.seconds = 0 AND t.nanos = 0 AND unversioned_id<100;
END LOOP;
......
......@@ -36,11 +36,8 @@ fi
check_version $OLD_VERSION
echo "feature_config.sql"
mysql_execute_file $PATCH_DIR/feature_config.sql
echo "versioning.sql"
mysql_execute_file $PATCH_DIR/versioning.sql
echo "fix_unversioned.sql"
mysql_execute_file $PATCH_DIR/fix_unversioned.sql
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment