give_event_tickets; $charset = DB::get_charset_collate(); // id BINARY(16) DEFAULT (UUID_TO_BIN(UUID())), $sql = "CREATE TABLE $table ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, event_id INT UNSIGNED NOT NULL, ticket_type_id INT UNSIGNED NOT NULL, donation_id INT UNSIGNED NOT NULL, created_at DATETIME NOT NULL, updated_at DATETIME NOT NULL, PRIMARY KEY (id) ) $charset"; try { DB::delta( $sql ); } catch ( DatabaseQueryException $exception ) { throw new DatabaseMigrationException( "An error occurred while creating the $table table", 0, $exception ); } } };