Skip to content
Robert Blust edited this page Jan 29, 2015 · 1 revision

Add new attribute [0..1] | []

CDO

val store = REPOSITORY.store as IDBStore
val transaction = store.database.openSchemaTransaction
		
val table = transaction.workingCopy.getTable(TABLE_NAME)
table.addField(COLUMN_NAME, DBType.CHAR)

transaction.commit
transaction.close

DB

ALTER TABLE TABLE_NAME ADD COLUMN_NAME VARCHAR(32672);
Clone this wiki locally