I don't see it as Magic Number, you are storing the unique int identifier of the enum value in the database, if this is wrong then so is storing the primary key of a table in another table as foreign key. If you don't have the source code or at least the documentation, why are you administrating that database in the first place? The referred article does not talk about databases at all, but magic number in the source code where it's a problem even having the source code.
↧