#1 2011-03-09 12:56:32

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

How will this framework handle table structure change?

Hi ab,

What if published properties are removed or added to a TSqlRecord decedent? Will this framework automatically handle the table schema change? Thanks!


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#2 2011-03-09 13:49:50

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: How will this framework handle table structure change?

Well, forget about this question, I read the following release notes in the source file:


    Version 1.7
    - alter table with newly added fields to a TSQLRecord (see GetSQLAddField()
      methods)


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

#3 2011-03-11 17:49:36

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: How will this framework handle table structure change?

Offline

#4 2011-03-12 02:52:11

edwinsn
Member
Registered: 2010-07-02
Posts: 1,218

Re: How will this framework handle table structure change?

Great! So the CreateMissingTables method will handle the field adding. I don't need to rename or delete a field.


Delphi XE4 Pro on Windows 7 64bit.
Lazarus trunk built with fpcupdelux on Windows with cross-compile for Linux 64bit.

Offline

Board footer

Powered by FluxBB