Permalink
Browse files

Including SQL for table

  • Loading branch information...
1 parent 4dd47ca commit 1769a078d6be971c2eec81f8925e95209a890abd @deepwinter committed Jan 18, 2012
Showing with 19 additions and 0 deletions.
  1. +10 −0 classes/confirmation.php
  2. +9 −0 sql/confirmations.sql
@@ -0,0 +1,10 @@
+<?
+
+Class confirmation {
+
+ /*
+ * Sends an email with a link that calls action 'confirm' on the class matching 'confirmation name'
+ */
+ public static function email($emailAddress, $confirmationName){
+ }
+}
@@ -0,0 +1,9 @@
+CREATE TABLE `confirmations` (
+ `id` int(11) NOT NULL AUTO_INCREMENT,
+ `confirmation_id` varchar(100) CHARACTER SET latin1 NOT NULL,
+ `controller` varchar(100) CHARACTER SET latin1 NOT NULL,
+ `action` varchar(100) CHARACTER SET latin1 NOT NULL,
+ `created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
+ `timeouthours` int(11) NOT NULL,
+ PRIMARY KEY (`id`)
+) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;

0 comments on commit 1769a07

Please sign in to comment.