If you want to use in an already existing Project the keyword-substitution in Subversin as described here: Subversion Keywords (Revision,Author,URL,Date,ID) you have to set the properties to substitute these keywords for all existing files, too.
This can be done e.g. in Tortoise SVN in the contextmenu-properties-new
Just check in the needed Keywords an click OK.
You can the properties for every single file or recursively for an directory:
After setting this properties, alle the files have to be checked in!
Table-Create-Statements have to be enhanced with the following statement:
COMMENT ON TABLE IS ‚
These variables will be replaced by every SVN-Checkin (Subversion-VersionsControll-System) with their pendants.
$URL$ => $URL: http://…/branches/SDLCV11726/svn-test.txt $
$Rev$ => $Rev: 13558 $
$Author$ => $Author: herzogg $
$Date$ => $Date: 2012-09-13 15:58:28 +0200 (Do, 13 Sep 2012) $
$Id$ => $Id: svn-test.txt 13558 2012-09-13 13:58:28Z herzogg $
So it is possible to see in the Database which version is the Table/Function/Procedure and so on,
what is very helpful.
Configuration of Tortoise SVN
To activate this feature in SVN please open SVN-Settings ([context-menu]->[TortoiseSVN]->[Settings]
Then Click [EDIT] on the Subversion Configuration File on the General – Tab:
Add or uncomment the following line in this config-file in the [miscellany] – Section
Add following lines in this config-file in the [auto-props] – Section
(Add new file-endings if you are using different…)
*.sql = svn:keywords=URL Rev Author Date Id
*.fnc = svn:keywords=URL Rev Author Date Id
*.prc = svn:keywords=URL Rev Author Date Id
*.pks = svn:keywords=URL Rev Author Date Id
*.pkb = svn:keywords=URL Rev Author Date Id
*.txt = svn:keywords=URL Rev Author Date Id