spilth / annotated-spring

Web site for Spring Screencasts
MIT License
8 stars 5 forks source link

Use dedicated column for Episode Number #19

Open spilth opened 9 years ago

spilth commented 9 years ago

Currently I am using the auto incremented episode_id field for the episode number. Unfortunately I'm using ClearDB on PWS which has an auto_increment_increment of 10 to allow for master-master replication.

Instead I should use a dedicated column for Episode Number and make sure the submitted values are unique across episodes. Auto-incrementing the Episode Number doesn't necessary need to happen but would be convenient.