14 years agoFix up foreign key from videos to announcements
Matt S Trout [Mon, 18 Jan 2010 01:19:33 +0000]
Fix up foreign key from videos to announcements

All videos should be attached to an announcement from the same bucket,
so make the schema enforce that. One could probably argue that this means
that bucket_slug doesn't need to exist in the videos table but in my
opinion one would be dead wrong :) - the bucket is an integral part of the
video so while it's sort of duplication, it isn't denormalisation.

14 years agoAdd example data
Matt S Trout [Mon, 18 Jan 2010 01:03:57 +0000]
Add example data

Tragically, I'm on an airplane so the examples are all my talks since I can
remember what those are called (and mdk's, since he's sat next to me ...).

14 years agoSQL DDL for buckets, announcements and videos
Matt S Trout [Mon, 18 Jan 2010 00:45:19 +0000]
SQL DDL for buckets, announcements and videos

Folded the announcement_videos table into videos since in our initial model
a video cannot exist without an announcement; we can always re-introduce
the table later if that changes