]> ruin.nu Git - ndwebbie.git/commitdiff
Change infrastructure for users, groups and channels
authorMichael Andreen <harv@ruin.nu>
Fri, 14 Aug 2009 23:19:31 +0000 (01:19 +0200)
committerMichael Andreen <harv@ruin.nu>
Fri, 21 Aug 2009 14:00:55 +0000 (16:00 +0200)
Dropping surrogate keys for groups, channels and channel flags. Instead
use the following changes.

* groups.flag changes name to groups.gid and is used as primary key.
  Also attributes referencing this attribute with foreign keys are named
  gid.

* channels.name changes name to channels.channel and is used as primary
  key.

* channel_flags gets a flag attribute used as primary key.

Change username, pnick and hostaname to use the citext type, also use
normal unique constraints instead of functional indexes on lower().

Since ships_home has to be dropped and recreated, also change this view and
available_ships to use the new infrastructure.


No differences found