Guest User

Untitled

a guest
Jun 4th, 2015
280
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.02 KB | None | 0 0
  1. CREATE TABLE IF NOT EXISTS `lottery` (  `lotofund` int(30) NOT NULL DEFAULT '0',
  2. `tickets` int(30) NOT NULL DEFAULT '0'
  3. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
  4.  
  5. INSERT INTO `lottery` (`lotofund`, `tickets`) VALUES (0, 0);
  6.  
  7. CREATE TABLE IF NOT EXISTS `lottery_players` (
  8. `user` int(30) NOT NULL DEFAULT '0',
  9. `tickets` int(10) NOT NULL DEFAULT '0'
  10. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
  11.  
  12. CREATE TABLE IF NOT EXISTS `lotowinners` (
  13. `user` int(20) NOT NULL DEFAULT '0',
  14. `amountwon` int(50) NOT NULL DEFAULT '0'
  15. ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
  16.  
  17. CREATE TABLE IF NOT EXISTS `lottery_config` (
  18. `ticketprice` int(30) NOT NULL DEFAULT '0',
  19. `maxtickets` int(30) NOT NULL DEFAULT '0',
  20. `pagedisable` enum('Yes','No') NOT NULL DEFAULT 'No'
  21. ) ENGINE=MyISAM DEFAULT CHARSET=latin1;
  22.  
  23. INSERT INTO `lottery_config` (`ticketprice`, `maxtickets`, `pagedisable`) VALUES (1000, 10, 'No');
  24.  
  25. ALTER TABLE `users` ADD `tickets` INT(30) NOT NULL DEFAULT 0;
Advertisement
Add Comment
Please, Sign In to add comment