]> ruin.nu Git - ndwebbie.git/commit
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)
commit84d8f30ecbac4d41009e3f979526a47557f49225
treedac26a0a930be1a288eb5f3b9b2d45abea3c526f
parentaa42aa5497f10f957d426f5777a746f3af49f534
Change infrastructure for users, groups and channels

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.
database/available_ships.sql
database/groupschannels.sql [new file with mode: 0644]
lib/NDWeb/Auth/User.pm
lib/NDWeb/Controller/Calls.pm
lib/NDWeb/Controller/Forum.pm
lib/NDWeb/Controller/Intel.pm
lib/NDWeb/Controller/Members.pm
lib/NDWeb/Controller/Raids.pm
lib/NDWeb/Controller/Users.pm
root/src/raids/edit.tt2
root/src/users/edit.tt2