Skip to content

Commit

Permalink
Alter the migrations so that it is a no-op as the columns are unused …
Browse files Browse the repository at this point in the history
…and the operation is very expensive
  • Loading branch information
BlueWall committed Mar 5, 2015
1 parent 96b8740 commit d7b45a3
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
3 changes: 2 additions & 1 deletion OpenSim/Data/MySQL/Resources/AssetStore.migrations
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,5 @@ ALTER TABLE assets ADD COLUMN CreatorID varchar(128) NOT NULL DEFAULT '';

:VERSION 9

ALTER TABLE assets MODIFY description varchar(128);
BEGIN;
COMMIT;
3 changes: 0 additions & 3 deletions OpenSim/Data/MySQL/Resources/XAssetStore.migrations
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,4 @@ COMMIT;
:VERSION 2

BEGIN;

ALTER TABLE xassetsmeta MODIFY Description varchar(128);

COMMIT;
3 changes: 2 additions & 1 deletion OpenSim/Data/PGSQL/Resources/AssetStore.migrations
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,5 @@ alter table assets add "creatorid" varchar(36) not null default '';

:VERSION 8

ALTER TABLE assets ALTER COLUMN description TYPE varchar(128);
BEGIN TRANSACTION;
COMMIT;
3 changes: 0 additions & 3 deletions OpenSim/Data/PGSQL/Resources/XAssetStore.migrations
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,4 @@ COMMIT;
:VERSION 5

BEGIN;

ALTER TABLE xassetsmeta ALTER COLUMN description TYPE varchar(128);

COMMIT;
2 changes: 1 addition & 1 deletion OpenSim/Framework/AssetBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class AssetBase
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType);

public static readonly int MAX_ASSET_NAME = 64;
public static readonly int MAX_ASSET_DESC = 128;
public static readonly int MAX_ASSET_DESC = 64;

/// <summary>
/// Data of the Asset
Expand Down

0 comments on commit d7b45a3

Please sign in to comment.