Skip to content

Instantly share code, notes, and snippets.

@e00dan
Created March 30, 2014 13:10
Show Gist options
  • Save e00dan/9872588 to your computer and use it in GitHub Desktop.
Save e00dan/9872588 to your computer and use it in GitHub Desktop.
ALTER TABLE `accounts` ADD `referrer` int(11) DEFAULT NULL;
CREATE TABLE IF NOT EXISTS `referrals` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`account_id` int(11) NOT NULL,
`premium_points` int(10) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=0 ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment