forked from science-ation/science-ation
Change the sql file
This commit is contained in:
parent
1137afa14b
commit
f12445c5d0
@ -27,8 +27,8 @@ CREATE TABLE `award_awards` (
|
||||
`sponsors_id` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`award_types_id` int(10) unsigned NOT NULL DEFAULT 0,
|
||||
`name` varchar(128) NOT NULL DEFAULT '',
|
||||
`criteria` text NOT NULL,
|
||||
`description` text NOT NULL,
|
||||
`criteria` text NOT NULL DEFAULT '',
|
||||
`description` text NOT NULL DEFAULT '',
|
||||
`presenter` varchar(128) NOT NULL DEFAULT '',
|
||||
`order` int(11) NOT NULL DEFAULT 0,
|
||||
`year` int(11) NOT NULL DEFAULT 0,
|
||||
@ -38,10 +38,10 @@ CREATE TABLE `award_awards` (
|
||||
`schedule_judges` enum('yes','no') NOT NULL DEFAULT 'yes',
|
||||
`external_identifier` varchar(32) DEFAULT NULL,
|
||||
`external_postback` varchar(128) DEFAULT NULL,
|
||||
`external_additional_materials` tinyint(1) NOT NULL,
|
||||
`external_register_winners` tinyint(1) NOT NULL,
|
||||
`external_additional_materials` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`external_register_winners` tinyint(1) NOT NULL DEFAULT 0,
|
||||
`award_source_fairs_id` int(10) unsigned DEFAULT NULL,
|
||||
`per_fair` enum('no','yes') NOT NULL,
|
||||
`per_fair` enum('no','yes') NOT NULL DEFAULT 'no',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `award_sponsors_id` (`sponsors_id`),
|
||||
KEY `award_types_id` (`award_types_id`),
|
||||
@ -200,8 +200,8 @@ CREATE TABLE `cms` (
|
||||
`filename` varchar(128) NOT NULL,
|
||||
`dt` datetime NOT NULL,
|
||||
`lang` varchar(2) NOT NULL,
|
||||
`title` varchar(128) NOT NULL,
|
||||
`text` text NOT NULL,
|
||||
`title` varchar(128) NOT NULL DEFAULT '',
|
||||
`text` text NOT NULL DEFAULT '',
|
||||
`showlogo` tinyint(1) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
@ -275,12 +275,12 @@ DROP TABLE IF EXISTS `config`;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `config` (
|
||||
`var` varchar(64) NOT NULL DEFAULT '',
|
||||
`val` text NOT NULL,
|
||||
`val` text NOT NULL DEFAULT '',
|
||||
`category` varchar(64) NOT NULL DEFAULT '',
|
||||
`type` enum('','yesno','number','text','enum','multisel','language','theme') NOT NULL,
|
||||
`type_values` tinytext NOT NULL,
|
||||
`type` enum('','yesno','number','text','enum','multisel','language','theme') NOT NULL DEFAULT '',
|
||||
`type_values` tinytext NOT NULL DEFAULT '',
|
||||
`ord` int(11) NOT NULL DEFAULT 0,
|
||||
`description` text NOT NULL,
|
||||
`description` text NOT NULL DEFAULT '',
|
||||
`year` int(11) NOT NULL DEFAULT 0,
|
||||
UNIQUE KEY `var` (`var`,`year`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
@ -799,12 +799,12 @@ INSERT INTO `dates` VALUES
|
||||
(9,'0000-00-00 00:00:00','specawardregclose','Special Awards self-nomination closes',-1),
|
||||
(10,'0000-00-00 00:00:00','judgescheduleavailable','Judge assignments and schedule are available to judges',-1),
|
||||
(11,'0000-00-00 00:00:00','fairdate','Date of the fair',2025),
|
||||
(12,'0000-00-00 00:00:00','regopen','Registration system opens',2025),
|
||||
(13,'0000-00-00 00:00:00','regclose','Registration system closes',2025),
|
||||
(12,'2025-02-01 00:00:00','regopen','Registration system opens',2025),
|
||||
(13,'2025-02-27 00:00:00','regclose','Registration system closes',2025),
|
||||
(14,'0000-00-00 00:00:00','postparticipants','Registered participants are posted on the website',2025),
|
||||
(15,'0000-00-00 00:00:00','postwinners','Winners are posted on the website',2025),
|
||||
(16,'0000-00-00 00:00:00','judgeregopen','Judges registration opens',2025),
|
||||
(17,'0000-00-00 00:00:00','judgeregclose','Judges registration closes',2025),
|
||||
(16,'2025-01-15 00:00:00','judgeregopen','Judges registration opens',2025),
|
||||
(17,'2025-02-26 00:00:00','judgeregclose','Judges registration closes',2025),
|
||||
(18,'0000-00-00 00:00:00','specawardregopen','Special Awards self-nomination opens',2025),
|
||||
(19,'0000-00-00 00:00:00','specawardregclose','Special Awards self-nomination closes',2025),
|
||||
(20,'0000-00-00 00:00:00','judgescheduleavailable','Judge assignments and schedule are available to judges',2025);
|
||||
@ -821,7 +821,7 @@ DROP TABLE IF EXISTS `documents`;
|
||||
CREATE TABLE `documents` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`date` date NOT NULL,
|
||||
`title` varchar(128) NOT NULL,
|
||||
`title` varchar(128) NOT NULL DEFAULT '',
|
||||
`sel_category` varchar(128) NOT NULL,
|
||||
`filename` varchar(128) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
@ -943,7 +943,7 @@ INSERT INTO `emails` VALUES
|
||||
(11,'volunteer_add_invite','Volunteers - Add Volunteer Invitation','This is sent to existing users when they are invited using the invite volunteers administration section, only available when the Volunteer Registration Type is set to Invite','contact@science-ation.ca','Volunteer Registration for [FAIRNAME]','The role of volunteer for the [FAIRNAME] has been added to your account by a committee member. When you login again, there will be a [Switch Roles] link in the upper right hand area of the page. Clicking on [Switch Roles] will let you switch between being a Volunteer and your other roles without needing to logout.\n','','system',NULL,NULL),
|
||||
(12,'judge_recover_password','Judges - Recover Password','Recover the password for a judge if they submit a \'forgot password\' request','contact@science-ation.ca','Password Recovery for [FAIRNAME]','We have received a request for the recovery of your password from this email address. Please find your new password below:\n\nJudge Email Address: [EMAIL]\nJudge Password: [PASSWORD] ','','system',NULL,NULL),
|
||||
(13,'judge_welcome','Judges - Welcome','Welcome email sent to a judge after they have registered for the first time. This email includes their temporary password.','contact@science-ation.ca','Judge Registration for [FAIRNAME]','Thank you for registering as a judge at our fair. Please find your temporary password below. After logging in for the first time you will be prompted to change your password.\n\nJudge Email Address: [EMAIL]\nJudge Password: [PASSWORD]','','system',NULL,NULL),
|
||||
(14,'judge_new_invite','Judges - New Judge Invitation','This is sent to a new judge when they are invited using the invite users administration option.','contact@science-ation.ca','Judge Registration for [FAIRNAME]','You have been invited to be a judge for the [FAIRNAME]. An account has been created for you to login with and complete your information. You can login to the judge registration site with:\n\nEmail Address: [EMAIL]\nPassword: [PASSWORD]\nYou can change your password once you login.','','system',NULL,NULL),
|
||||
(14,'judge_new_invite','Judges - New Judge Invitation','This is sent to a new judge when they are invited using the invite users administration option.','contact@science-ation.ca','Judge Registration for [FAIRNAME]','You have been invited to be a judge for the [FAIRNAME]. An account has been created for you to login with and complete your information. You can login to the judge registration site [URLLOGIN] with:\n\nEmail Address: [EMAIL]\nPassword: [PASSWORD]\nYou can change your password once you login.','','system',NULL,NULL),
|
||||
(15,'judge_add_invite','Judges - Add Judge Invitation','This is sent to existing users when they are invited using the invite users administration option.','contact@science-ation.ca','Judge Registration for [FAIRNAME]','The role of judge for the [FAIRNAME] has been added to your account by a committee member. When you login again, there will be a [Switch Roles] link in the upper right hand area of the page. Clicking on [Switch Roles] will let you switch between being a Judge and your other roles without needing to logout.\n','','system',NULL,NULL),
|
||||
(16,'judge_activate_reminder','Judges - Activation Reminder','This is sent to existing judges who have not yet activated their account for the current fair year.','contact@science-ation.ca','Judge Registration for [FAIRNAME]','This message is to let you know that Judge registration for the [FAIRNAME] is now open. If you would like to participate in the fair this year please log in to the registration site using your email address ([EMAIL]) an\n','','system',NULL,NULL),
|
||||
(17,'volunteer_activate_reminder','Volunteer Registration - Activation Reminder','This is sent to existing volunteers who have not yet activated their account for the current fair year.','contact@science-ation.ca','Volunteer Registration for [FAIRNAME]','This message is to let you know that Volunteer registration for the [FAIRNAME] is now open. If you would like to participate in the fair this year please log in to the registration site using your email address ([EMAIL]).\n','','system',NULL,NULL),
|
||||
@ -1097,10 +1097,10 @@ CREATE TABLE `fairs_stats` (
|
||||
`year` int(11) NOT NULL DEFAULT 0,
|
||||
`start_date` date NOT NULL DEFAULT '0000-00-00',
|
||||
`end_date` date NOT NULL DEFAULT '0000-00-00',
|
||||
`address` text NOT NULL,
|
||||
`address` text NOT NULL DEFAULT '',
|
||||
`budget` float NOT NULL DEFAULT 0,
|
||||
`ysf_affiliation_complete` enum('Y','N') NOT NULL DEFAULT 'Y',
|
||||
`charity` tinytext NOT NULL,
|
||||
`charity` tinytext NOT NULL DEFAULT '',
|
||||
`male_1` int(11) NOT NULL DEFAULT 0,
|
||||
`male_4` int(11) NOT NULL DEFAULT 0,
|
||||
`male_7` int(11) NOT NULL DEFAULT 0,
|
||||
@ -1175,13 +1175,13 @@ DROP TABLE IF EXISTS `fundraising_campaigns`;
|
||||
CREATE TABLE `fundraising_campaigns` (
|
||||
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
|
||||
`name` varchar(128) NOT NULL,
|
||||
`type` varchar(64) NOT NULL,
|
||||
`startdate` date NOT NULL,
|
||||
`enddate` date NOT NULL,
|
||||
`type` varchar(64) NOT NULL DEFAULT '',
|
||||
`startdate` date NOT NULL DEFAULT '0000-00-00',
|
||||
`enddate` date NOT NULL DEFAULT '0000-00-00',
|
||||
`followupdate` date DEFAULT NULL,
|
||||
`active` enum('no','yes') NOT NULL,
|
||||
`target` int(11) NOT NULL,
|
||||
`fundraising_goal` varchar(32) NOT NULL,
|
||||
`active` enum('no','yes') NOT NULL DEFAULT 'no',
|
||||
`target` int(11) NOT NULL DEFAULT 0,
|
||||
`fundraising_goal` varchar(32) NOT NULL DEFAULT 0,
|
||||
`filterparameters` varchar(255) DEFAULT NULL,
|
||||
`fiscalyear` int(11) NOT NULL,
|
||||
PRIMARY KEY (`id`)
|
||||
@ -1606,7 +1606,7 @@ CREATE TABLE `judges_timeslots` (
|
||||
`date` date NOT NULL DEFAULT '0000-00-00',
|
||||
`starttime` time NOT NULL DEFAULT '00:00:00',
|
||||
`endtime` time NOT NULL DEFAULT '00:00:00',
|
||||
`name` tinytext NOT NULL,
|
||||
`name` tinytext NOT NULL DEFAULT '',
|
||||
`year` int(11) NOT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
@ -1898,6 +1898,8 @@ CREATE TABLE `projects` (
|
||||
|
||||
LOCK TABLES `projects` WRITE;
|
||||
/*!40000 ALTER TABLE `projects` DISABLE KEYS */;
|
||||
INSERT INTO `projects` VALUES
|
||||
(1,2,NULL,NULL,0,0,0,3,0,NULL,'','',1,'',2025,'no','yes','','',0,NULL,NULL,NULL,NULL,NULL);
|
||||
/*!40000 ALTER TABLE `projects` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
@ -2184,6 +2186,8 @@ CREATE TABLE `registrations` (
|
||||
|
||||
LOCK TABLES `registrations` WRITE;
|
||||
/*!40000 ALTER TABLE `registrations` DISABLE KEYS */;
|
||||
INSERT INTO `registrations` VALUES
|
||||
(2,'964107','test@test.ca',NULL,'2025-02-03 17:51:28','open','0000-00-00 00:00:00',2025,2,NULL);
|
||||
/*!40000 ALTER TABLE `registrations` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
@ -3117,7 +3121,7 @@ CREATE TABLE `schools` (
|
||||
`projectlimitper` enum('total','agecategory') NOT NULL DEFAULT 'total',
|
||||
`atrisk` enum('no','yes') NOT NULL DEFAULT 'no',
|
||||
PRIMARY KEY (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
) ENGINE=MyISAM AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
||||
--
|
||||
@ -3126,6 +3130,8 @@ CREATE TABLE `schools` (
|
||||
|
||||
LOCK TABLES `schools` WRITE;
|
||||
/*!40000 ALTER TABLE `schools` DISABLE KEYS */;
|
||||
INSERT INTO `schools` VALUES
|
||||
(1,'sd','','','','','','','','','','','','',NULL,NULL,'','','','','',2025,NULL,0,0,0,'',0,'total','no');
|
||||
/*!40000 ALTER TABLE `schools` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
@ -3171,23 +3177,23 @@ CREATE TABLE `sponsors` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`organization` varchar(128) NOT NULL DEFAULT '',
|
||||
`phone` varchar(32) NOT NULL DEFAULT '',
|
||||
`tollfree` varchar(32) NOT NULL,
|
||||
`tollfree` varchar(32) NOT NULL DEFAULT '',
|
||||
`fax` varchar(32) NOT NULL DEFAULT '',
|
||||
`email` varchar(128) NOT NULL DEFAULT '',
|
||||
`website` varchar(128) NOT NULL,
|
||||
`website` varchar(128) NOT NULL DEFAULT '',
|
||||
`year` int(11) NOT NULL DEFAULT 0,
|
||||
`address` varchar(128) NOT NULL DEFAULT '',
|
||||
`address2` varchar(128) NOT NULL,
|
||||
`address2` varchar(128) NOT NULL DEFAULT '',
|
||||
`city` varchar(64) NOT NULL DEFAULT '',
|
||||
`province_code` char(2) NOT NULL DEFAULT '',
|
||||
`postalcode` varchar(8) NOT NULL DEFAULT '',
|
||||
`notes` text NOT NULL,
|
||||
`donationpolicyurl` varchar(255) NOT NULL,
|
||||
`fundingselectiondate` date DEFAULT NULL,
|
||||
`notes` text NOT NULL DEFAULT '',
|
||||
`donationpolicyurl` varchar(255) NOT NULL DEFAULT '',
|
||||
`fundingselectiondate` date DEFAULT '0000-00-00',
|
||||
`logo` varchar(128) DEFAULT NULL,
|
||||
`waiveraccepted` enum('no','yes') NOT NULL DEFAULT 'no',
|
||||
`donortype` enum('organization','individual') NOT NULL DEFAULT 'organization',
|
||||
`proposalsubmissiondate` date NOT NULL,
|
||||
`proposalsubmissiondate` date NOT NULL DEFAULT '0000-00-00',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `id` (`id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
@ -3405,7 +3411,7 @@ CREATE TABLE `users` (
|
||||
`username` varchar(128) NOT NULL DEFAULT '',
|
||||
`password` varchar(60) NOT NULL DEFAULT '',
|
||||
`passwordset` date DEFAULT NULL,
|
||||
`oldpassword` varchar(60) NOT NULL,
|
||||
`oldpassword` varchar(60) NOT NULL DEFAULT '',
|
||||
`email` varchar(128) NOT NULL DEFAULT '',
|
||||
`year` int(11) NOT NULL,
|
||||
`phonehome` varchar(32) NOT NULL DEFAULT '',
|
||||
@ -3413,8 +3419,8 @@ CREATE TABLE `users` (
|
||||
`phonecell` varchar(32) NOT NULL DEFAULT '',
|
||||
`fax` varchar(32) NOT NULL DEFAULT '',
|
||||
`organization` varchar(64) NOT NULL DEFAULT '',
|
||||
`birthdate` date NOT NULL,
|
||||
`lang` varchar(2) NOT NULL,
|
||||
`birthdate` date NOT NULL DEFAULT '0000-00-00',
|
||||
`lang` varchar(2) NOT NULL DEFAULT 'en',
|
||||
`created` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`lastlogin` datetime NOT NULL DEFAULT '0000-00-00 00:00:00',
|
||||
`address` varchar(64) NOT NULL DEFAULT '',
|
||||
@ -3439,7 +3445,7 @@ LOCK TABLES `users` WRITE;
|
||||
/*!40000 ALTER TABLE `users` DISABLE KEYS */;
|
||||
INSERT INTO `users` VALUES
|
||||
(1,1,'fair','','','',NULL,'fair@science-ation.ca','$2y$10$xCsYhiUwTT/DCwkCFBPzXuH5ZBt0xt0boy3zj8FkdoktbwkmEk7Ta','0000-00-00','','',2025,'','','','','','0000-00-00','','2009-10-22 12:56:09','0000-00-00 00:00:00','','','','','','no','no','no',NULL),
|
||||
(2,2,'committee','','Superuser','Account',NULL,'contact@science-ation.ca','$2y$10$ZekjuaS8eV8DrTfMR1ak7OxiFMDEzCEUtm04OiISLcx6uGyx.4TMm','2024-10-16','','contact@science-ation.ca',2025,'','','','','','0000-00-00','','2024-10-16 04:38:47','0000-00-00 00:00:00','','','','','','no','no','no',NULL);
|
||||
(2,2,'committee','','Superuser','Account',NULL,'contact@science-ation.ca','$2y$10$xCsYhiUwTT/DCwkCFBPzXuH5ZBt0xt0boy3zj8FkdoktbwkmEk7Ta','2024-10-16','','contact@science-ation.ca',2025,'','','','','','0000-00-00','','2024-10-16 04:38:47','0000-00-00 00:00:00','','','','','','no','no','no',NULL);
|
||||
/*!40000 ALTER TABLE `users` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
@ -3477,8 +3483,8 @@ CREATE TABLE `users_committee` (
|
||||
`users_id` int(11) NOT NULL,
|
||||
`committee_active` enum('no','yes') NOT NULL DEFAULT 'no',
|
||||
`committee_complete` enum('no','yes') NOT NULL DEFAULT 'no',
|
||||
`emailprivate` varchar(128) NOT NULL,
|
||||
`ord` int(11) NOT NULL,
|
||||
`emailprivate` varchar(128) NOT NULL DEFAULT '',
|
||||
`ord` int(11) NOT NULL DEFAULT 0,
|
||||
`displayemail` enum('no','yes') NOT NULL DEFAULT 'no',
|
||||
`access_admin` enum('no','yes') NOT NULL DEFAULT 'no',
|
||||
`access_config` enum('no','yes') NOT NULL DEFAULT 'no',
|
||||
@ -3547,8 +3553,8 @@ CREATE TABLE `users_judge` (
|
||||
`languages` tinytext NOT NULL DEFAULT '',
|
||||
`highest_psd` tinytext NOT NULL DEFAULT '',
|
||||
`expertise_other` tinytext NOT NULL DEFAULT '',
|
||||
`private_info` text DEFAULT NULL ,
|
||||
`flagged_judge` tinyint(1) DEFAULT NULL,
|
||||
`private_info` text DEFAULT NULL DEFAULT '',
|
||||
`flagged_judge` tinyint(1) DEFAULT NULL DEFAULT 0,
|
||||
PRIMARY KEY (`users_id`)
|
||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_swedish_ci;
|
||||
/*!40101 SET character_set_client = @saved_cs_client */;
|
||||
|
Loading…
x
Reference in New Issue
Block a user