NF_Database_Migrations_Forms

The Ninja Forms NF Database Migrations Forms class.

Defined (1)

The class is defined in the following location(s).

/includes/Database/Migrations/Forms.php  
  1. class NF_Database_Migrations_Forms extends NF_Abstracts_Migration 
  2. public function __construct() 
  3. parent::__construct( 
  4. 'nf3_forms',  
  5. 'nf_migration_create_table_forms' 
  6. ); 
  7.  
  8. public function run() 
  9. $query = "CREATE TABLE IF NOT EXISTS $this->table_name ( 
  10. `id` int NOT NULL AUTO_INCREMENT,  
  11. `title` longtext,  
  12. `key` longtext,  
  13. `created_at` TIMESTAMP,  
  14. `updated_at` DATETIME,  
  15. `views` int(11),  
  16. `subs` int(11),  
  17. UNIQUE KEY (`id`) 
  18. ) $this->charset_collate;"; 
  19.  
  20. dbDelta( $query ); 
  21.