Show
Ignore:
Timestamp:
02/08/08 02:44:39 (2 years ago)
Author:
eevee
Message:

Database refactoring. Renamed columns and tables to be more consistent and more readable. (#58)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • veekun/trunk/script/base_data.sql

    r381 r406  
    1 LOCK TABLES forums WRITE, grouppermissions WRITE, groups WRITE, usergroups WRITE, users WRITE; 
     1LOCK TABLES forums WRITE, group_permissions WRITE, groups WRITE, user_groups WRITE, users WRITE; 
    22 
    3 INSERT INTO forums (id, name, lastpostid, threadct, postct, flags, accessibility, blurb) 
     3INSERT INTO forums (id, name, last_post_id, thread_count, post_count, flags, accessibility, blurb) 
    44VALUES (1, 'News', NULL, 0, 0, '', 'normal', 'News and updates show up here.'); 
    55 
    6 INSERT INTO grouppermissions (groupid, permission, scope, polarity) 
     6INSERT INTO group_permissions (group_id, permission, scope, polarity) 
    77VALUES (1, 'splat', '', 'allow'); 
    88 
     
    1111       (2, '', 'Users'); 
    1212 
    13 INSERT INTO usergroups (userid, groupid, priority) 
     13INSERT INTO user_groups (user_id, group_id, priority) 
    1414VALUES (0, 2, 1), 
    1515       (1, 1, 1); 
    1616 
    17 INSERT INTO users (id, name, password, joindate, signature, thread_view_cutoff) 
     17INSERT INTO users (id, name, password, time_joined, signature, thread_view_cutoff) 
    1818VALUES (1, 'admin', '5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8', UNIX_TIMESTAMP(), 'Default signature', UNIX_TIMESTAMP()); 
    1919