add create_time and access_time to asset db for mysql, as well

as the code to update these at the appropriate time.  This isn't
surfaced in AssetBase yet.

Change the replace into to an insert into for asset create.  Assets
are not supposed to be updatable, and the replace into is more
expensive.

From: Sean Dague <sdague@gmail.com>
This commit is contained in:
Sean Dague
2008-11-06 21:21:46 +00:00
parent c6dad833f5
commit 629b0d9f28
2 changed files with 52 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
BEGIN;
ALTER TABLE assets add create_time integer default 0;
ALTER TABLE assets add access_time integer default 0;
COMMIT;