How to add a new column to an existing azure table storage

Hoang picture Hoang · Jan 20, 2012 · Viewed 12.8k times · Source

We are using azure table storage and have thousands of tables using the same schema. Now we are looking to add another column to these tables. How do we add another column to our existing tables without deleting the table and re-adding it?

Answer

David Makogon picture David Makogon · Jan 20, 2012

Windows Azure Table Storage doesn't actually have columns. Each entity (e.g. a Row) is simply a set of properties, with no fixed schema. If you're using a strongly-typed class to write to your table, then you just need to add your new property to that class.

For older rows that don't have the new property, the value in your class object will be set to its default value.