Skip to content

Commit

Permalink
Merge pull request #1 from bertrandom/master
Browse files Browse the repository at this point in the history
Fix typos in schema, link to correct schema, instruct user about backup dir
  • Loading branch information
thisisaaronland committed Apr 11, 2012
2 parents 4738498 + a9ca2f7 commit bd9c379
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 deletions.
7 changes: 6 additions & 1 deletion INSTALL.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ The basics
$GLOBALS['cfg']['instagram_oauth_callback'] = 'auth/'; $GLOBALS['cfg']['instagram_oauth_callback'] = 'auth/';


# You will need to setup a MySQL database and plug in the specifics # You will need to setup a MySQL database and plug in the specifics
# here: https://github.com/straup/privatesquare/blob/master/schema # here: https://github.com/straup/parallel-ogram/tree/master/schema


# See also: https://github.com/straup/flamework-tools/blob/master/bin/setup-db.sh # See also: https://github.com/straup/flamework-tools/blob/master/bin/setup-db.sh


Expand Down Expand Up @@ -56,6 +56,11 @@ The basics


$GLOBALS['cfg']['enable_feature_backups'] = 1; $GLOBALS['cfg']['enable_feature_backups'] = 1;
$GLOBALS['cfg']['enable_feature_backups_registration'] = 1; $GLOBALS['cfg']['enable_feature_backups_registration'] = 1;

# This is where your Instagram photos will be stored
# It should have a trailing slash e.g. /usr/local/parallelogram-static/

$GLOBALS['cfg']['instagram_static_path'] = ''


Limiting access (invite codes and "god" auth) Limiting access (invite codes and "god" auth)
=== ===
Expand Down
3 changes: 1 addition & 2 deletions schema/db_main.schema
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ CREATE TABLE `users` (
`cluster_id` tinyint(3) unsigned NOT NULL, `cluster_id` tinyint(3) unsigned NOT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`id`),
UNIQUE KEY `by_email` (`email`), UNIQUE KEY `by_email` (`email`),
UNIQUE KEY `by_username` (`username`,`deleted`), UNIQUE KEY `by_username` (`username`,`deleted`)
KEY `backup_users` (`backup_photos`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;


DROP TABLE IF EXISTS `users_password_reset`; DROP TABLE IF EXISTS `users_password_reset`;
Expand Down
2 changes: 1 addition & 1 deletion schema/db_users.schema
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -29,6 +29,6 @@ CREATE TABLE `InstagramLikes` (
`created` INT(11) UNSIGNED NOT NULL, `created` INT(11) UNSIGNED NOT NULL,
UNIQUE KEY `by_like` (`user_id`, `photo_id`), UNIQUE KEY `by_like` (`user_id`, `photo_id`),
KEY `by_user` (`user_id`, `created`), KEY `by_user` (`user_id`, `created`),
KEY `by_owner` (`user_id`, `owner_id`, `created`) KEY `by_owner` (`user_id`, `owner_id`, `created`),
KEY `filter` (`user_id`, `filter`, `created`) KEY `filter` (`user_id`, `filter`, `created`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;
16 changes: 16 additions & 0 deletions www/include/config.php.example
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@


# Things you'll need to tweak # Things you'll need to tweak


# You will need valid Instagram OAuth credentials
# See also: http://instagram.com/developer/client/register/

$GLOBALS['cfg']['instagram_oauth_key'] = '';
$GLOBALS['cfg']['instagram_oauth_secret'] = '';

# Don't change this (but if you do be sure to update the main
# .htaccess file accordingly).

$GLOBALS['cfg']['instagram_oauth_callback'] = 'auth/';

# Setting up the database # Setting up the database
# See also: https://github.com/straup/flamework-tools/blob/master/bin/setup-db.sh # See also: https://github.com/straup/flamework-tools/blob/master/bin/setup-db.sh


Expand Down Expand Up @@ -42,6 +53,11 @@
$GLOBALS['cfg']['enable_feature_backups'] = 1; $GLOBALS['cfg']['enable_feature_backups'] = 1;
$GLOBALS['cfg']['enable_feature_backups_registration'] = 1; $GLOBALS['cfg']['enable_feature_backups_registration'] = 1;


# This is where your Instagram photos will be stored
# It should have a trailing slash e.g. /usr/local/parallelogram-static/

$GLOBALS['cfg']['instagram_static_path'] = ''

# Invite codes – these are used to limit who can register # Invite codes – these are used to limit who can register
# to have their photos backed up. You'll need to do a # to have their photos backed up. You'll need to do a
# few things to enable this: # few things to enable this:
Expand Down

0 comments on commit bd9c379

Please sign in to comment.